Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. static <- ggplot(df5, aes(x = Ukenr, y = Timepris, group = Type, col = Type)) +
  2. geom_line() +
  3. geom_segment(aes(xend = 54, yend = Timepris), linetype = 2, colour = 'grey') +
  4. geom_point(size = 2) +
  5. geom_text(aes(x = 53.1, label = Timepris), hjust = 0) +
  6. transition_reveal(Ukenr) +
  7. coord_cartesian(clip = 'off') +
  8. labs(title = 'Snitt timepris pr uke fordelt på privat/offentlig', y = 'Timepris') +
  9. theme_minimal() +
  10. theme(plot.margin = margin(5.5, 40, 5.5, 5.5))
  11.  
  12.  
  13.  
  14. final_animation <- animate(static,100,fps = 20,duration = 30, width = 950, height = 750, renderer = gifski_renderer())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement