I have what is probably a noob question, but.... I am trying to create a 3d plot to illustrate the range of values for the following simple function: A = B*(C/D) B, C, and D are independent variables whose range are equal (e.g. 1 to 3 inclusive) I figure it's not possible to map the surface of A on the 3d space defined by B, C and D but I would like to create a surface defined by the lower and upper limits of the variables - that is to say a rectangle with corners at (1,1,1), (2,3,2), (3,3,3) and (3,2,2) with a color map displayed on it corresponding to the values of A and a color key to the side of that. I have been able to wrap my head part way around persp and wireframe and can create a surface for A~B*(C/D) in either, but have not managed to create either the
On Aug 16, 2011, at 9:50 PM, Eric Heupel wrote:> I have what is probably a noob question, but.... > > I am trying to create a 3d plot to illustrate the range of values > for the following simple function: > > A = B*(C/D) > > B, C, and D are independent variables whose range are equal (e.g. 1 > to 3 inclusive) > > I figure it's not possible to map the surface of A on the 3d space > defined by B, C and D but I would like to create a surface defined > by the lower and upper limits of the variables - that is to say a > rectangle with corners at (1,1,1), (2,3,2), (3,3,3) and (3,2,2) with > a color map displayed on it corresponding to the values of A and a > color key to the side of that. > > I have been able to wrap my head part way around persp and wireframe > and can create a surface for A~B*(C/D) in either, but have not > managed to create either theThe rgl package will allow plotting in pseudo 3D space ... once you unwrap your head sufficiently to provide a suitable sample dataset. Persp and wireframe are designed for a function of two variables: A ~ B*C. You could also plot slices at various levels of D with those or perhaps more clearly with levelplot -- David Winsemius, MD West Hartford, CT
On 11-08-16 9:50 PM, Eric Heupel wrote:> I have what is probably a noob question, but.... > > I am trying to create a 3d plot to illustrate the range of values for the following simple function: > > A = B*(C/D) > > B, C, and D are independent variables whose range are equal (e.g. 1 to 3 inclusive) > > I figure it's not possible to map the surface of A on the 3d space defined by B, C and D but I would like to create a surface defined by the lower and upper limits of the variables - that is to say a rectangle with corners at (1,1,1), (2,3,2), (3,3,3) and (3,2,2) with a color map displayed on it corresponding to the values of A and a color key to the side of that. > > I have been able to wrap my head part way around persp and wireframe and can create a surface for A~B*(C/D) in either, but have not managed to create either theThe contour3d function in misc3d might do what you want. See the examples. Duncan Murdoch
Reasonably Related Threads
- 3D surface plot with wireframe or persp?
- persp or wireframe 3D plot: how can I independently adjust linewidth of the 'surface' and framebox?
- is that possible to graph 4 dimention plot
- Generating list of vector coordinates
- Screen settings for point of view in lattice and misc3d