Skip to content

Instantly share code, notes, and snippets.

@StatsRhian
Created November 4, 2019 21:30
Show Gist options
  • Save StatsRhian/90fc068a989ad2d228edc92f90221553 to your computer and use it in GitHub Desktop.
Save StatsRhian/90fc068a989ad2d228edc92f90221553 to your computer and use it in GitHub Desktop.
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)
ggplotly(g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment