Plot TS-matrix as a surface
Thank you Enrico. Your example helped me to solve a (embarrasingly basic) error in my code. Plots fine now. Thx again. PS
Enrico Schumann wrote:
it should be helpful to give a little code example, or at least the content of the error messages that you received. the following gives me a perspective plot... require(zoo) nC <- 10 # columns nO <- 100 # observations dataM <- array(runif(nC * nO), dim=c(nO, nC)) zz <- zoo(dataM, 1:nO) persp(1:nO,1:nC,zz) regards enrico -----Urspr?ngliche Nachricht----- Von: r-sig-finance-bounces at stat.math.ethz.ch [mailto:r-sig-finance-bounces at stat.math.ethz.ch] Im Auftrag von R at Nabble Gesendet: Donnerstag, 26. Februar 2009 12:26 An: r-sig-finance at stat.math.ethz.ch Betreff: [R-SIG-Finance] [R-sig-finance] Plot TS-matrix as a surface I'd like to be able to plot a time-series matrix (i.e. first col contains sorted dates, rest of cols contains non-sorted data, with headings at the top; current format is as a zoo object) as a surface/3D chart. The function persp() is giving me errors, even if I transform data as core data, etc. Any suggestions / other functions available? Thx, PS -- View this message in context: http://www.nabble.com/Plot-TS-matrix-as-a-surface-tp22222236p22222236.html Sent from the Rmetrics mailing list archive at Nabble.com.
_______________________________________________ R-SIG-Finance at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. -- If you want to post, subscribe first. No virus found in this incoming message. Checked by AVG - www.avg.com 06:40:00 _______________________________________________ R-SIG-Finance at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. -- If you want to post, subscribe first.
View this message in context: http://www.nabble.com/Plot-TS-matrix-as-a-surface-tp22222236p22225107.html Sent from the Rmetrics mailing list archive at Nabble.com.