Consider the following:
temp <- array(sample(1:100,12), dim=c(365,12))
Depth <- as.vector(seq(1,12,by=1))
time <- seq(from=as.Date("2011-01-01"), to=as.Date("2011-12-31"), by=1)
Data <- data.frame(Time = time, Temp = as.matrix(temp))
colnames(Data) <- c("Datetime", paste(Depth,"m",sep = ""))
Don't take into account the 3 lines used in generating the data.frame as they are merely used to generate a similar example I am currently working with. The data.frame i.e. 'Data' consists of a Date-time vector and corresponding temperature measurements recorded at different depths where the depth of each measurement is given as the column names.
From this I would like to generate a filled contour plot of the temperature profile. So, I want to place the DateTime vector as the x values, the col headings as the y values and the temp as the z values. How would I go about achieving this?
I have only just converted from matlab to R so apologies for what is probably a very simple problem.