Created
September 26, 2018 08:30
-
-
Save wisnunugroho21/781530da6cb0cf1ae483c7b3e5fd949f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install library gapminder dan tidyverse jika belum diinstall | |
#install.packages("gapminder") | |
#install.packages("tidyverse) | |
library(tidyverse) | |
library(gapminder) | |
gapminder_subset <- gapminder %>% | |
filter(year == 2007) | |
ggplot(gapminder_subset, aes(x = lifeExp, y = gdpPercap, color = continent, | |
size = pop)) + geom_point() + scale_y_log10() + | |
scale_x_log10() + labs(title = "Grafik data negara tahun 2007") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment