[R] persp and lines()
spencer.graves at pdf.com
Wed Feb 18 03:01:24 CET 2004
The help file for persp (in R 1.8.1, at least) includes a function
to "Add to existing persp plot". Have you tried that? Alternative,
have you considered "wireframe" in package lattice?
hope this helps. spencer graves
Jeff Jorgensen wrote:
> I'm interested in keeping data plotted in persp to preserve the
> wireframe look, I'd just like to change one of the lines drawn (in
> either the x or y direction) into a different color so that it stands
> Or is there some way to add a line (say, via lines(), or abline()) to
> a persp() plot at the designated x or y that would follow the z
> surface contour? I could add a line using 2D representations of the
> data, but I'd like to use the perspective plot if possible.
> Any advice?
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help