Log scales

Introduction to the Tidyverse

David Robinson

Chief Data Scientist, DataCamp

Scatter plot

5XUScDZ.png

library(ggplot2)

ggplot(gapminder, aes(x = gdpPerCap, y = lifeExp)) +
  geom_point()
Introduction to the Tidyverse

Log scale

ggplot(gapminder_2007, aes(x = gdpPercap, y = lifeExp)) +
  geom_point() +
  scale_x_log10()
Introduction to the Tidyverse

Let's practice!

Introduction to the Tidyverse

Preparing Video For Download...