Advertisement
Guest User

Untitled

a guest
May 19th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setwd("C:/Users/ana-maria.silivestru/Desktop")
  2. library(ggplot2)
  3. date<-read.csv("date.csv")
  4. View(date)
  5. attach(date)
  6. fix(date)
  7. An<-as.Date(date$An, "%Y")
  8. #Evolutia PIB
  9. date1<- date
  10. date1$An<- factor(date1$An)
  11. ggplot(date1, aes(x=An, y=PIB, group=1)) + geom_line() + geom_point()  + scale_x_date(breaks = "5 years")
  12. #Evolutia PIB Per Capita
  13. date1<- date
  14. date1$An<- factor(date1$An)
  15. ggplot(date1, aes(x=An, y=PIBpercapita, group=1)) + geom_line() + geom_point()
  16. #Evolutia Investitiilor
  17. date1<- date
  18. date1$An<- factor(date1$An)
  19. ggplot(date1, aes(x=An, y=Investitiile, group=1)) + geom_line() + geom_point()
  20. #Evolutia IPC
  21. date1<- date
  22. date1$An<- factor(date1$An)
  23. ggplot(date1, aes(x=An, y=IPC, group=1)) + geom_line() + geom_point()
  24. #Evolutia Inflatiei
  25. date1<- date
  26. date1$An<- factor(date1$An)
  27. ggplot(date1, aes(x=An, y=RI, group=1)) + geom_line() + geom_point()
  28. #Evolutia Importurilor
  29. date1<- date
  30. date1$An<- factor(date1$An)
  31. ggplot(date1, aes(x=An, y=Importuri, group=1)) + geom_line() + geom_point()
  32. #Evolutia Exporturilor
  33. date1<- date
  34. date1$An<- factor(date1$An)
  35. ggplot(date1, aes(x=An, y=Exporturi, group=1)) + geom_line() + geom_point()
  36. #Evolutia Somajului
  37. date1<- date
  38. date1$An<- factor(date1$An)
  39. ggplot(date1, aes(x=An, y=Ratasomajului, group=1)) + geom_line() + geom_point()
  40. #Evolutia numarului populatiei
  41. date1<- date
  42. date1$An<- factor(date1$An)
  43. ggplot(date1, aes(x=An, y=Populatia, group=1)) + geom_line() + geom_point()
  44. #Evolutia finantelor publice
  45. date1<- date
  46. date1$An<- factor(date1$An)
  47. ggplot(date1, aes(x=An, y=Finantepublice, group=1)) + geom_line() + geom_point()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement