Log scales

Introduzione al Tidyverse

David Robinson

Chief Data Scientist, DataCamp

Scatter plot

5XUScDZ.png

library(ggplot2)

ggplot(gapminder, aes(x = gdpPerCap, y = lifeExp)) +
  geom_point()
Introduzione al Tidyverse

Log scale

ggplot(gapminder_2007, aes(x = gdpPercap, y = lifeExp)) +
  geom_point() +
  scale_x_log10()
Introduzione al Tidyverse

Let's practice!

Introduzione al Tidyverse

Preparing Video For Download...