[R] 3-D response surface using wireframe()

David Winsemius dwinsemius at comcast.net
Thu Apr 8 03:22:36 CEST 2010


On Apr 7, 2010, at 8:58 PM, array chip wrote:

> With the help document, i finally find a set of values of for x=,y=  
> and z= in "screen" argument that gives me the correct rotation of  
> the plot. But now it plots x and y axis (tick marks and labels)  
> along the top of the plot. Is there one way to plot x and y axis on  
> the bottom of the plot?

Look at the scpos argument to specify the scales location. (Still  
lacking an example and therrefore doing this from memory.)

-- 
David
>
> 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
>>
>>
>
>
>
>

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list