search for: wash2005fm10

Displaying 2 results from an estimated 2 matches for "wash2005fm10".

2006 Oct 23
3
Plotting Text on a graph
Hi, I plotted 12 graphs on a page and output to a png file. I wanted to have an overall title for all 12 graphs. What command can I use to do this? Below is the code that plotted the 12 graphs in one page. # FM10 by Month/ Export the plot to Wash2005FM10.png png(file="Wash2005FM10.png",bg="white") par(mfrow = c(3,4)) # Plot 12 Month of OFM10, FFM10 for(i in 1:12) { Temp <- subset (Wash2005, MM == i) plot (Temp$FM10.1, Temp$FM10,main=month.name[i],xlim=c(5,25),ylim=c(5,25)) } text(10,10, "Overall Title") ...
2006 Oct 20
1
How to evaluate a Variable Name?
Hi, I have a dataframe Wash2005, which has daily weather data. I am doing a regression by month as follows: # FM10 Regression by Month # Plot 12 Month of OFM10, FFM10 for(i in 1:12) { Temp <- subset (Wash2005, MM == i) assign( paste('Wash2005FM10', strtrim(month.name[i],3), sep=""),lm(Temp$FM10.1 ~ Temp$FM10)) } Wash2005FM10Jan, Wash2005FM10Feb, etc holds the regression results for each month. Now, I want to sum up the residuals of all the 12 regression. How can I do that in a loop? For (i in 1:12){ Temp <- pas...