hi,
i am having trouble getting a particular time series to plot. this is what i
have:
> class(irradiance)
[1] "ts"> irradiance[1:30]
197811 197812 197901 197902 197903 197904 197905 197906
1366.679 1366.729 1367.476 1367.739 1368.339 1367.883 1367.916 1367.055
197907 197908 197909 197910 197911 197912 198001 198002
1367.484 1366.887 1366.935 1367.034 1366.997 1367.310 1367.041 1366.459
198003 198004 198005 198006 198007 198008 198009 198010
1367.143 1366.553 1366.597 1366.854 1366.814 1366.901 1366.622 1366.669
198011 198012 198101 198102 198103 198104
1365.874 1366.098 1367.141 1366.239 1366.323 1366.388> plot(irradiance[1:30])
> plot(irradiance)
Error in dn[[2]] : subscript out of bounds
so, if i plot a subset of the data it works fine. but if i try to plot the
whole thing it breaks. the ts object was created using:
irradiance = ts(tapply(d$number, f, mean), freq = 12, start = c(1978, 11))
and other ts objects that i have defined using basically the same approach
work fine.
any ideas greatly appreciated!
cheers,
andrew.
[[alternative HTML version deleted]]