[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    Re: [R] Two surfaces in one plot with visibility
From:       Sebastian Schubert <schubert.seb () googlemail ! com>
Date:       2012-02-13 16:47:59
Message-ID: 4F393EBF.2000109 () googlemail ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi!

On 13/02/12 17:15, Duncan Murdoch wrote:
>> 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.
[..]
>> I
>> would like to have the visibility of the surfaces taken into account a=
s
>> if they are solid thin surfaces, so that for example the order of the
>> plot commands does not matter.

> That's really hard in persp().   You'd have to plot the facets of the
> surfaces from back to front, and there's no easy way to do that.
> I'd recommend using rgl::persp3d, where your graphics hardware will do
> the computations of which surface is in front.

Thanks a lot! Works really well and created a "wow" effect (especially
when comparing to the manual tuning of the theta and phi angles in
persp() ).

Great job!

Sebastian


["signature.asc" (application/pgp-signature)]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic