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
library("gapminder") | |
library("ggplot2") | |
library("plotly") | |
data(gapminder, package = "gapminder") | |
g = ggplot(gapminder, aes(x = gdpPercap, y = lifeExp, | |
size = pop, colour = continent, | |
frame = year, label = country)) + | |
geom_point(alpha = 0.5) |
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
library(ggplot2) | |
data(movies, package = "jrIntroduction") | |
# 1. Create a histogram of movie ratings | |
# 2. Play around with different binwidths | |
# 3. Change the histogram to a density plot | |
# 4. Add a title |