[R] Two surfaces in one plot with visibility

Sebastian Schubert schubert.seb at googlemail.com
Mon Feb 13 15:24:47 CET 2012


Hi,

I would like plot two surfaces which are each given by vectors x and y,
and a matrix m(x,y) representing the z coordinate. With persp() I can
plot both, using par(new=TRUE) I can put it in one plot. However, I
would like to have the visibility of the surfaces taken into account as
if they are solid thin surfaces, so that for example the order of the
plot commands does not matter.

Any idea how to do that?

Thanks a lot,

Sebastian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120213/2d5354f0/attachment.bin>


More information about the R-help mailing list