Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. plot_vaekst <- ggplot()+
  2. geom_line(vs, mapping = aes(x= year, y = Forbrugerindex, color = "red" ))+
  3. geom_line(vs, mapping = aes(x = year, y = Nettoledighed, color = "blue"))+
  4. scale_color_discrete(name = "Variable", label = c("Forbrugerpriser", "Nettoledighed"))+
  5. labs(x = "Årstal", y= "Procent",
  6. title = "Vækstraten for forbrugsprisindex og nettoledighed(1995-2010)",
  7. subtitle = "Figur 3.3",
  8. caption = "Kilde: Danmarks statistik")+
  9. theme_minimal()+
  10. theme(text = element_text(size = 12 ),
  11. plot.title = element_text(size=4),
  12. axis.text.x = element_text(angle=90, vjust=0.5)+
  13. scale_x_continuous(breaks = 1995:2018))
  14.  
  15. plot_vaekst
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement