-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
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)
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
3 matches
Mail list logo