Seaborn stripplot | What is a strip plot and how to make a strip plot in Python seaborn
HTML-код
- Опубликовано: 6 авг 2024
- This seaborn stripplot video describes what a strip plot is and explains how to make a strip plot in Python seaborn. After I explain the strip plot, I then compare the stripplot vs swarmplot and provide a demonstration on how to code a stripplot with seaborn. I then showcase styling options for the seaborn stripplot and end with a gallery of strip plot examples.
0:00 What is a strip plot?
1:07 Stripplot vs swarmplot
2:21 CODE: How to MAKE a stripplot
5:40 CODE demo: How to STYLE a stripplot
9:07 Gallery of strip plot examples
9:38 Conclusion
Github code:
github.com/kimfetti/Videos/bl...
#seaborn #dataviz Наука
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.
Thank you for the beautiful video :-)
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 😊
Amazing!
Thank you very much! 😄
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!
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
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: ruclips.net/p/PLtPIclEQf-3cG31dxSMZ8KTcDG7zYng1j
@@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