[R] 3-D response surface using wireframe()
array chip
arrayprofile at yahoo.com
Wed Apr 7 21:33:15 CEST 2010
Thank you David. The document is very helpful.
I had a typo in my 2nd example plot, one of the "z" is "x", "z" is the vertical one.
Thanks
John
--- On Wed, 4/7/10, David Winsemius <dwinsemius at comcast.net> wrote:
> From: David Winsemius <dwinsemius at comcast.net>
> Subject: Re: [R] 3-D response surface using wireframe()
> To: "array chip" <arrayprofile at yahoo.com>
> Cc: r-help at r-project.org
> Date: Wednesday, April 7, 2010, 8:07 AM
> A search with the following
> strategy:
>
> RSiteSearch("lattice wireframe rotate axes")
>
> Followed by adding requests to search earlier years'
> archives produced this link which has a further link to a
> document that answers most of your questions, at least the
> ones that are comprehensible:
>
> http://tolstoy.newcastle.edu.au/R/e2/help/07/03/12534.html
>
> --David.
>
> On Apr 6, 2010, at 7:12 PM, array chip wrote:
>
> > I am working on plotting a response surface using
> wireframe(). The default style/orientation is
> >
> > z
> > |
> > |
> > y |
> > \ |
> > \ |
> > \ |
> > \ |
> > \ |
> > \ |
> > \ |
> > \|________________x
> > 0
> >
> > Now what I want the orientation of axes is:
> >
> >
> z
> >
> |
> >
> |
> >
> |
> >
> |
> >
> |
> >
> /0\
> >
> / \
> >
> / \
> >
> / \
> >
> / \
> > /
> \
> > y
> z
>
> Two z axes? How interesting!
>
> >
> > My understanding is that the screen=list(z=,y=,x=)
> control the orientation of axes, but even after reading the
> help page of screen argument, I still don't understand how
> to use it.
> >
> > screen: "A list determining the sequence of rotations
> to be applied to the data before being plotted. The initial
> position starts with the viewing point along the positive
> z-axis, and the x and y axes in the usual position. Each
> component of the list should be named one of "x", "y" or "z"
> (repititions are allowed), with their values indicating the
> amount of rotation about that axis in degrees."
> >
> > Can anyone explain to me how the screen argument
> works? And what values (x,y,z) I should choose for the
> orientation that I want?
> >
> > Another question is wireframe(0 will draw all 8 edges
> of the cubic by default, is there anyway that I can control
> what edges I can draw, what I can hide?
> >
> > thanks very much!
> >
> > John
> >
> > ______________________________________________
> > R-help at 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.
>
> David Winsemius, MD
> West Hartford, CT
>
>
More information about the R-help
mailing list