search for: air_temp

Displaying 4 results from an estimated 4 matches for "air_temp".

2017 Oct 12
2
dual y-axis for ggplot
...n color as well as its own shape? For example, can I make the red line with the linetype "twodash", while the blue line with the linetype "solid"? For convenience, I copied the codes as follows. ######## p <- ggplot(obs, aes(x = Timestamp)) p <- p + geom_line(aes(y = air_temp, colour = "Temperature")) # adding the relative humidity data, transformed to match roughly the range of the temperature p <- p + geom_line(aes(y = rel_hum/5, colour = "Humidity")) # now adding the secondary axis, following the example in the help file ?scale_y_contin...
2017 Oct 12
1
dual y-axis for ggplot
Hi John, You can try the following: override.linetype=c("twodash","solid") p <- ggplot(obs, aes(x = Timestamp)) p <- p + geom_line(aes(y = air_temp, colour = "Temperature", linetype ="Temperature")) p <- p + geom_line(aes(y = rel_hum/5, colour = "Humidity", linetype="Humidity")) p <- p + guides(colour=guide_legend(override.aes=list(linetype=override.linetype))) p <- p + scale_colour_manual(value...
2017 Oct 12
0
dual y-axis for ggplot
Sorry let me clarify. If I modify the line p <- p + geom_line(aes(y = air_temp, colour = "Temperature")) by p <- p + geom_line(aes(y = air_temp, colour = "Temperature", linetype ="Temperature")) and p <- p + geom_line(aes(y = rel_hum/5, colour = "Humidity")) by p <- p + geom_line(aes(y = rel_hum/5, colour = "Humidity"...
2007 Jan 08
2
Simple spectral analysis
...he period). I tried the spectrum() and pgram() functions, but did not find a way through... The final aim would be to get the periodogram (and the residuals from the reassembled data set...) Thanks and greetings, Georg The data set: air = read.csv("http://www.hydrology.uni-kiel.de/~schorsch/air_temp.csv") airtemp = ts(T_air, start=c(1989,1), freq = 365) plot(airtemp) -- Georg Hoermann, Dep. of Hydrology, Ecology, Kiel University, Germany +49/431/23761412, mo: +49/171/4995884, icq:348340729, skype: ghoermann