Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Swarmplot | Categorical Plot Types
course content

Conteúdo do Curso

Deep Dive into the seaborn Visualization

Deep Dive into the seaborn Visualization

SwarmplotSwarmplot

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

Tarefa

  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.

Tudo estava claro?

Seção 3. Capítulo 2
toggle bottom row
course content

Conteúdo do Curso

Deep Dive into the seaborn Visualization

Deep Dive into the seaborn Visualization

SwarmplotSwarmplot

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

Tarefa

  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.

Tudo estava claro?

Seção 3. Capítulo 2
toggle bottom row
some-alt