Histogrammes

Introduction à Tidyverse

David Robinson

Chief Data Scientist, DataCamp

Histogramme

TNRM2C9.png

ggplot(gapminder_2007, aes(x = lifeExp)) +
  geom_histogram()
Introduction à Tidyverse

Réglage de la largeur des barres

0rQSC2C.png

ggplot(gapminder_2007, aes(x = lifeExp)) +
  geom_histogram(binwidth = 5)
Introduction à Tidyverse

Axe des x logarithmique

scale_x_log10()
Introduction à Tidyverse

Passons à la pratique !

Introduction à Tidyverse

Preparing Video For Download...