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
  • НаукаНаука

Комментарии • 22

  • @viniciusoviedo
    @viniciusoviedo Год назад +1

    Amazing job! A very didactic video with a lot of value. Thank you for sharing it.

  • @jpjameszhang4675
    @jpjameszhang4675 2 года назад

    excellent introduction, especially the introduction of the statistics and the concept of plots.

  • @mosama22
    @mosama22 2 года назад

    Thank you for the beautiful video :-)

  • @Muchael754
    @Muchael754 Месяц назад

    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!!!

    • @KimberlyFessel
      @KimberlyFessel  Месяц назад +1

      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 😊

  • @comebackivanovitch
    @comebackivanovitch 3 года назад +1

    Amazing!

  • @maheshvenkat9956
    @maheshvenkat9956 3 года назад +1

    It would be great if you can explain how to interpret the plot. It is a brilliant step by step visual explanation

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Oh I see - like some inferences we can draw from the plot? Interesting idea and I will consider that for an upcoming video. Thanks!

  • @nicolasrojastelles1606
    @nicolasrojastelles1606 3 года назад

    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?

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      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. 🤔

  • @haotruong2057
    @haotruong2057 Год назад

    Hello can you tell me how to show the average data in each group in Seaborn

  • @minakshimathpal8698
    @minakshimathpal8698 3 года назад

    sns.set_style('white')
    sns.stripplot(cars.weight, ['']*len(cars), hue=cars.cylinders,
    can you plzz explain what ['']*len(cars) is doing here

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      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.

  • @sivasu07
    @sivasu07 3 года назад

    Mam ur teaching is excellent
    Can u teach me seaborn libraries in python

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +2

      So glad you enjoyed the video! 👍 You can check out my full "Introduction to Seaborn" playlist here: ruclips.net/p/PLtPIclEQf-3cG31dxSMZ8KTcDG7zYng1j

    • @sivasu07
      @sivasu07 3 года назад

      @@KimberlyFessel do u have videos for multiple bar plots using twinx func

    • @sivasu07
      @sivasu07 3 года назад

      @@KimberlyFessel last ques- how to do multiple box plots in seaborn

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +1

      Hi -- no videos using twinx yet but will consider that for the future!

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +2

      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 😄

  • @jedidiaholadele2086
    @jedidiaholadele2086 2 года назад

    This really should be called a jitterplot