Sunday 3 December 2017

r - RStudio: Including multiple plots in one graph

rel="nofollow noreferrer">Data1 in
Excel




I have the following
plots in RStudio:



plot(Data1$Year,
Data1$UKAll16_64, pch = 16, cex = 0.5,type="l", col = "blue", main = "UNEMPLOYMENT RATES
16-64", xlab = "YEARS (YR)", ylab = "PERCENTAGE
(%)")



plot(Data1$Year,
Data1$UKFemale16_64, pch = 16, cex = 0.5,type="l", col = "red", main = "UNEMPLOYMENT
RATES FEMALES 16-64 ", xlab = "YEARS (YR)", ylab = "PERCENTAGE
(%)")



plot(Data1$Year,
Data1$UKMale16_64, pch = 16, cex = 0.5,type="l", col = "orange", main = "UNEMPLOYMENT
RATES MALES 16-64 ", xlab = "YEARS (YR)", ylab = "PERCENTAGE
(%)")



/>


As I am fairly new to R and RStudio, I am
still learning and wanting to know how to include all 3 in one graph. Any help would be
very much appreciated!!



Edit: I
included my data set in the form I wanted on excel to give a visual example of what I am
trying to accomplish on R Studio

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...