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.











Uppgift
Swipe to start coding
- Set the
'whitegrid'
style with the'seashell'
axes.facecolor
. - Create the
swarmplot
using theseaborn
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 equals1
; - Set the
size
parameter equals2
; - Set the
dodge
parameter equals theTrue
; - Set the
'rocket'
palette.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 4.35
Swarmplot
Svep för att visa menyn
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.











Uppgift
Swipe to start coding
- Set the
'whitegrid'
style with the'seashell'
axes.facecolor
. - Create the
swarmplot
using theseaborn
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 equals1
; - Set the
size
parameter equals2
; - Set the
dodge
parameter equals theTrue
; - Set the
'rocket'
palette.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 2
single