I'm trying to create a plot of temperatures but I can't aggregate the data by year. My data comes in this form:
02-2012 7.2
02-2013 7.2
02-2010 7.9
02-2011 9.8
03-2013 10.7
03-2010 13.1
03-2012 18.5
03-2011 13.7
02-2003 9.2
...
containing all the months between Jan 2000 and Dec 2013. I've loaded the data with zoo:
f <- function(x) as.yearmon(format(x), "%m-%Y")
temp <- read.zoo(file="results.tsv", FUN = f)
Plotting the temp var I obtain a plot with X axis going from Jan 2000 to Dec 2013, but what I'd like to have is a plot where the X axis goes from Jan to Dec and the temperatures of every year are plotted as a separate line. Any hint?
Thanks, Andrea