Re: [R] Plotting using tapply function output

2015-03-31 Thread John Kane
-project.org Subject: [R] Plotting using tapply function output Hello, I am trying to plot the hourly standard deviation of wind speeds from 13 different measured locations over many years. I imported the data using readLines and into a dataframe called finalData. Using tapply, I

[R] Plotting using tapply function output

2015-03-30 Thread Alexandra Catena
Hello, I am trying to plot the hourly standard deviation of wind speeds from 13 different measured locations over many years. I imported the data using readLines and into a dataframe called finalData. Using tapply, I determined the standard deviation of the windspeed (ws) for each hour (hour)

Re: [R] Plotting using tapply function output

2015-03-30 Thread Jim Lemon
Hi Alexandra, This produces a rather messy plot, but it might get you started: finalData-data.frame(ws=sample(0:100,1300,TRUE), stn=rep(1:13,each=100),hour=rep(1:24,length.out=1300)) statHour = tapply(finalData$ws,list(finalData$stn,finalData$hour),sd) # open a wide device x11(width=13) # leave