Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Swarmplot | Categorical Plot Types
Deep Dive into the seaborn Visualization
course content

Kursinhalt

Deep Dive into the seaborn Visualization

Deep Dive into the seaborn Visualization

1. Light Start
2. Distributions of Data
3. Categorical Plot Types
4. Matrix Plots
5. Multi-Plot Grids
6. Regression Models

book
Swarmplot

The swarmplot is similar to stripplot. Only the points are adjusted so they won't overlap, as it helps to represent the distribution of values better.

carousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-img
Aufgabe

Swipe to start coding

  1. Set the 'whitegrid' style with the 'seashell' axes.facecolor.
  2. Create the swarmplot using the seaborn library:
  • x parameter equals the 'day';
  • Set the y parameter equals the 'total_bill';
  • Set the hue parameter equals the 'sex';
  • Set the linewidth parameter equals 1;
  • Set the size parameter equals 2;
  • Set the dodge parameter equals the True;
  • Set the 'rocket' palette.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 2
toggle bottom row

book
Swarmplot

The swarmplot is similar to stripplot. Only the points are adjusted so they won't overlap, as it helps to represent the distribution of values better.

carousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-img
Aufgabe

Swipe to start coding

  1. Set the 'whitegrid' style with the 'seashell' axes.facecolor.
  2. Create the swarmplot using the seaborn library:
  • x parameter equals the 'day';
  • Set the y parameter equals the 'total_bill';
  • Set the hue parameter equals the 'sex';
  • Set the linewidth parameter equals 1;
  • Set the size parameter equals 2;
  • Set the dodge parameter equals the True;
  • Set the 'rocket' palette.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 2
Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
We're sorry to hear that something went wrong. What happened?
some-alt