I’ve used R ggplot for data visualisation and now learning Python. I was wondering for a long time how to do jitter plot in a different way as I used to use Graphpad, where we get swam plot! Thanks for telling me the name of the plot!!!
Awesome! Yes, I find both the strip plot and the swarm plot to be super useful for getting a sense of the distribution of points. And they look nice too 😊
Outstanding explanation! Thanks. Could you please make an example with a colorbar. Is it possible to use a color bar with a stripplot like we can use in a scatterplot?
Glad you enjoyed the video and good suggestion. Theoretically, you should be able to pass a continuous variable to the "hue" argument of the stripplot like you can with the scatterplot. I just did a few tests, and this works but doesn't work as well as the scatterplot. This makes me wonder if the stripplot may have a bug or need to process data a bit differently. 🤔
I don't think the stripplot natively comes with interquartile lines, but you could plot an empty box plot behind your stripplot to see them. For example: sns.boxplot(data=df, x='my_col', fill=False) sns.stripplot(data=df, x='my_col'); You could even turn the boxplot whiskers and fliers off with whis=0 and fliersize=0 if you'd like.
@@KimberlyFessel Thank You for the reply. I have actually saved and recommended your Seaborn Playlist to everyone. Your method of explaining is actually very comprehensive and nice which is not the case with a majority of TH-cam creators in this field. I do not know much about you but still I would request you if you get the time please do try and make application based and explanation videos in the field of stats, Data Science and Probability. Though the field is cluttered there is a serious lack of comprehensive explanations and quality. Also please upload your video on Web Scraping which you made for PyCon US on your own channel. It is very well explained and an amazing Tutorial
Sure thing. For that example, I wanted just one horizontal strip of data, so I set the y-axis category to be one empty string for every datapoint. (That syntax just repeats the elements of the list by the number of rows in cars.) This also means that I don't have any y-axis tick labels because the category is just the empty string.
So glad you enjoyed the video! 👍 You can check out my full "Introduction to Seaborn" playlist here: th-cam.com/play/PLtPIclEQf-3cG31dxSMZ8KTcDG7zYng1j.html
As subplots? You could create multiple box plots on the same figure by using pyplot to create subplots (plt.subplots(1, 2) would create one row with two columns of figures). I'll likely to a subplot video at some point 😄
Amazing job! A very didactic video with a lot of value. Thank you for sharing it.
excellent introduction, especially the introduction of the statistics and the concept of plots.
I’ve used R ggplot for data visualisation and now learning Python. I was wondering for a long time how to do jitter plot in a different way as I used to use Graphpad, where we get swam plot! Thanks for telling me the name of the plot!!!
Awesome! Yes, I find both the strip plot and the swarm plot to be super useful for getting a sense of the distribution of points. And they look nice too 😊
It would be great if you can explain how to interpret the plot. It is a brilliant step by step visual explanation
Oh I see - like some inferences we can draw from the plot? Interesting idea and I will consider that for an upcoming video. Thanks!
Thank you for the beautiful video :-)
Outstanding explanation! Thanks. Could you please make an example with a colorbar.
Is it possible to use a color bar with a stripplot like we can use in a scatterplot?
Glad you enjoyed the video and good suggestion. Theoretically, you should be able to pass a continuous variable to the "hue" argument of the stripplot like you can with the scatterplot. I just did a few tests, and this works but doesn't work as well as the scatterplot. This makes me wonder if the stripplot may have a bug or need to process data a bit differently. 🤔
Hello can you tell me how to show the average data in each group in Seaborn
Amazing!
Thank you very much! 😄
While making the stripplot how to get in inter quartile lines ?
I don't think the stripplot natively comes with interquartile lines, but you could plot an empty box plot behind your stripplot to see them. For example:
sns.boxplot(data=df, x='my_col', fill=False)
sns.stripplot(data=df, x='my_col');
You could even turn the boxplot whiskers and fliers off with whis=0 and fliersize=0 if you'd like.
@@KimberlyFessel Thank You for the reply. I have actually saved and recommended your Seaborn Playlist to everyone. Your method of explaining is actually very comprehensive and nice which is not the case with a majority of TH-cam creators in this field.
I do not know much about you but still I would request you if you get the time please do try and make application based and explanation videos in the field of stats, Data Science and Probability.
Though the field is cluttered there is a serious lack of comprehensive explanations and quality.
Also please upload your video on Web Scraping which you made for PyCon US on your own channel. It is very well explained and an amazing Tutorial
@rishidixit7939 Thanks very much for the recommendation to others! And I hope to make more videos in 2025.
sns.set_style('white')
sns.stripplot(cars.weight, ['']*len(cars), hue=cars.cylinders,
can you plzz explain what ['']*len(cars) is doing here
Sure thing. For that example, I wanted just one horizontal strip of data, so I set the y-axis category to be one empty string for every datapoint. (That syntax just repeats the elements of the list by the number of rows in cars.) This also means that I don't have any y-axis tick labels because the category is just the empty string.
Mam ur teaching is excellent
Can u teach me seaborn libraries in python
So glad you enjoyed the video! 👍 You can check out my full "Introduction to Seaborn" playlist here: th-cam.com/play/PLtPIclEQf-3cG31dxSMZ8KTcDG7zYng1j.html
@@KimberlyFessel do u have videos for multiple bar plots using twinx func
@@KimberlyFessel last ques- how to do multiple box plots in seaborn
Hi -- no videos using twinx yet but will consider that for the future!
As subplots? You could create multiple box plots on the same figure by using pyplot to create subplots (plt.subplots(1, 2) would create one row with two columns of figures). I'll likely to a subplot video at some point 😄
This really should be called a jitterplot