[R] Perspective or Contour Plot of a Matrix
Martin Maechler
maechler at stat.math.ethz.ch
Sat Jul 8 14:38:22 CEST 2000
>>>>> "amorgan" == amorgan <amorgan at mitre.org> writes:
amorgan> I would like to plot a large (401 x 101) matrix of numbers as
amorgan> a perspective plot (with the columns and row indices as the y
amorgan> and x components and the values in the matrix at the z
amorgan> values). I try to convert it to a data frame, but it always
amorgan> errors out with "Figure margins too large". What does this
amorgan> mean? How can I get the plot generated?
Why did you think you needed a data.frame
if your large matrix of numbers is called Mat
just say
persp(Mat)
which is equivalent to
persp(z=Mat)
which is equivalent to
persp(x = seq(0, 1, len = nrow(z)),
y = seq(0, 1, len = ncol(z)),
z = Mat)
Do you have suggestions for improving the online help for persp
which does contain this info ?
Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list