[R] TRIANGLE AW: lattice: shape of box around wireframe
David Winsemius
dwinsemius at comcast.net
Fri Dec 18 16:40:33 CET 2009
On Dec 18, 2009, at 10:02 AM, Thomas Roth wrote:
> Sorry,
>
> I mixed up some words...
> I wrote rectangle but meant TRIANGLE, sorry for that.
Huh? You want a triangular bounding box? We are supposed to fill in
the rest of the details, ... how?
>
> As for the book, I own it, studied it as well as the help pages but
> didn't
> come to a conclusion for my problem. Aspect can't help me with my
> problem. I
> need to set up the axes and obviously make some transformations and
> that's
> where I'm looking for some help...
>
>
> ----
> User-level control of the display is at the level of (1) either the
> panel function, which is somewhat non-trivial for the 3-D functions,
> or (2) the 'panel.3d.wireframe' function (for wireframe), where you
> can basically do anything after the axes and the transformations have
> been set up.
> ---
>
> Thomas
>
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: David Winsemius [mailto:dwinsemius at comcast.net]
> Gesendet: Freitag, 18. Dezember 2009 15:32
> An: Thomas Roth
> Cc: 'Deepayan Sarkar'; r-help at r-project.org
> Betreff: Re: [R] lattice: shape of box around wireframe
>
>
> On Dec 18, 2009, at 8:52 AM, Thomas Roth wrote:
>
>> Hi,
>>
>> Thank you for the quick answer...
>>
>> I made a small example:
>>
>> require(lattice)
>> x = 1:100
>> x = numeric(0)
>> z = numeric(0)
>> y = numeric(0)
>> for(i in 1:100)
>> {
>> y = c(y,1:i)
>> x = c(x, rep(i,i))
>> z = x + y
>> }
>>
>> #omitted bounding box
>> wireframe(z ~ x*y, par.box = c(col = "transparent"))
>>
>> #needed: rectangular bounding box
>> wireframe(z ~ x*y)
>>
>>
>> now what i'm looking for is a rectangular bounding box but I don't
>> know where to start...
>
> When I tried to use the Lattice book, I found that I could not locate
> the code that produced the example I remembered (Figure and could not
> initially findo Figures 13.8 and 13.9 (because they were in the color
> plates section in chapter 3) that appeared to be the result for the
> section to which I was referred from chapter 6.5. So I would suggest
> going to the book's website:
>
> http://lmdvr.r-forge.r-project.org/figures/figures.html
>
> and looking at the code for 13.9 and 6.5, both of which use cloud but
> I think the parameter you want is aspect, which is also in the
> parameter list for wireframe. Further examination of the wireframe
> help page examples suggests that you have not yet looked at that
> resource, since the first one uses aspect to create a rectangular
> bounding box.
>
> --
> David.
>
> r
>>
>> Thomas
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Deepayan Sarkar [mailto:deepayan.sarkar at gmail.com]
>> Gesendet: Freitag, 18. Dezember 2009 14:29
>> An: Thomas Roth
>> Cc: r-help at r-project.org
>> Betreff: Re: [R] lattice: shape of box around wireframe
>>
>> On Fri, Dec 18, 2009 at 5:19 AM, Thomas Roth
>> <thomas.k.roth at googlemail.com> wrote:
>>> Hi,
>>>
>>> I was wondering if there is a way to adjust the shape of the box
>>> around the
>>> wireframe. By default this box is always a cube. For instance, is it
>>> possible to cut this cube into two halfs each half being a 3d
>>> rectangle? Or
>>> just plot a 3d rectangle with a wireframe inside and adjusted axes?
>>>
>>> So far I've read "Lattice: Multivariate Data Visualization with R"
>>> and
>>> searched through the mailing list.
>>
>> User-level control of the display is at the level of (1) either the
>> panel function, which is somewhat non-trivial for the 3-D functions,
>> or (2) the 'panel.3d.wireframe' function (for wireframe), where you
>> can basically do anything after the axes and the transformations have
>> been set up. There are examples both in the book and on the
>> r-help/r-devel lists. Let me know if you need help in figuring out
>> any
>> specific details (such as how to omit the default bounding box by
>> setting its color to transparent).
>>
>> -Deepayan
>>
>> ______________________________________________
>> 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
> Heritage Laboratories
> West Hartford, CT
>
>
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list