Skip to content
Snippets Groups Projects
Commit abf8dc4f authored by Carine Rey's avatar Carine Rey
Browse files

add year in title

parent c40baff3
No related branches found
No related tags found
No related merge requests found
Pipeline #447 passed
...@@ -432,7 +432,8 @@ For this we need to add a `transition_time` layer that will take as an argument ...@@ -432,7 +432,8 @@ For this we need to add a `transition_time` layer that will take as an argument
ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, color = continent)) + ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, color = continent)) +
geom_point() + geom_point() +
scale_x_log10() + scale_x_log10() +
transition_time(year) transition_time(year) +
labs(title = 'Year: {as.integer(frame_time)}')
``` ```
</p> </p>
</details> </details>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment