From abf8dc4fd3c6952b6da9d827bc2039c812e145da Mon Sep 17 00:00:00 2001
From: Carine Rey <carine.rey@ens-lyon.fr>
Date: Thu, 29 Sep 2022 16:24:08 +0200
Subject: [PATCH] add year in title

---
 session_3/session_3.Rmd | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/session_3/session_3.Rmd b/session_3/session_3.Rmd
index 3e08297..4156027 100644
--- a/session_3/session_3.Rmd
+++ b/session_3/session_3.Rmd
@@ -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)) +
   geom_point() + 
   scale_x_log10() +
-  transition_time(year)
+  transition_time(year) +
+  labs(title = 'Year: {as.integer(frame_time)}')
 ```
 </p>
 </details>
\ No newline at end of file
-- 
GitLab