x <- gapminder %>% filter(year == 1962) %>% filter(continent %in% c("Americas", "Africa", "Asia"))
#> Error in gapminder %>% filter(year == 1962) %>% filter(continent %in% : could not find function "%>%"
ggplot(x, aes(x = gdpPercap, y = lifeExp, size = pop, color = continent, alpha = pop)) +
geom_point()
#> Error in ggplot(x, aes(x = gdpPercap, y = lifeExp, size = pop, color = continent, : could not find function "ggplot"
scale_x_log10() +
labs(title = "World in 1962", x = "GDP Per Capita", y = "Life Expectancy") +
facet_wrap(~continent)
#> Error in scale_x_log10(): could not find function "scale_x_log10"
Created on 2019-09-26 by the reprex package (v0.3.0)