Displaying 20 results from an estimated 5000 matches similar to: "Controlling (number of) wires in wireframe"
2012 Mar 15
1
coloring wireframe plot with independent/separate matrix of color values.
Dear R Users,
I am trying to plot a matrix (a Digital Elevation Model) using wireframe
[lattice] and color that matrix based on a separate/independent matrix of
the same resolution (both have the same number of rows and columns) as the
DEM. More specifically I would like to plot a DEM using wireframe and
color each cell/tile based on interpolated surface temperature
measurements. Within the
2010 Aug 09
1
creating pdf of wireframe
Dear R list,
I have written some code to produce several wireframe plots in a panel. They
look good, but when I try to create a pdf, many (but not all) of the details
I have specified are not reproduced. For example, the line width I have
specified is not reproduced, and neither are the font sizes for the axis
labels. I'm an R novice, so I could really use some guidance.
Here is the code I am
2011 Jan 03
4
how to invert the axes in the wireframe() plot
Dear List,
I am using the wireframe function in the lattice package, and I am wondering if it is possible to invert the default axes orientation for x and y axes... what parameter should I look for?
Best regards,
Simone Gabbriellini
2006 May 29
3
mtext in trellis-loop & colorkey
Hello,
I would like to create a sequence of plots (using a for loop). I read
in the FAQ that print() has to be used in order to obtain any output.
This works perfectly fine as long as I only consider one function
call in the loop, but I would like to add mtext() to the each plot in
the loop. Unfortunately, this did not work. Any suggestions?
As you can see from the provided example,
2006 Oct 25
1
cloud() works but wireframe() is blank
Per the message from Alexander Nervedi, 29 April 2006:
> I have to be making a riddiculously silly ommission.
> when I run the fillowing i get the cloud plot ok. But I cant figure
> out what I am missing out when I call wireframe.
> Any help would be appreciated.
> x<-runif(100)
> y<-rnorm(100)
> z<-runif(100)
> temp <-data.frame(x,y,z)
>
2011 Mar 04
1
lattice: wireframe "eats up" points; how to make points on wireframe visible?
Dear expeRts,
I would like to add two points to a wireframe plot. The points have (x,y,z) coordinates
where z is determined to be on the wireframe [same z-value]. Now something strange
happens. One point is perfectly plotted, the other isn't shown at all. It only
appears if I move it upwards in z-direction by adding a positive number. So somehow
it disappears in the wireframe-surface
2006 Feb 05
1
wireframe zlim option
Hello,
I would like to plot a wireframe of a function which is defined on the
unit square using the lattice library (for trellis-like plots). The plot
contains z-values of about 100 (only in the neighborhood of zero) although
most of the z-values are in the range of -let's say- 0 to 10. If I
evaluate this function on an equidistant grid of 25 points on the unit
square the plot quality is not
2011 Oct 24
1
Adding points to a wireframe: 'x and units must have length >0' error
Hi,
I'm trying to follow the suggestions given by Deepayan Sarkar in this
message:
http://tolstoy.newcastle.edu.au/R/help/05/11/16135.html
to plot 3-D points on a wireframe plot. The problem is that I keep getting a
partly formed plot- with the colored lattice visible but no axis labels or
additional points- with the error message "error using packet 1, 'x' and
'units'
2008 Apr 30
2
wireframe - add data points
Hello all,
I’m trying to add some data points to a wireframe. X an Y axis are independent variables, Z axis is predicted probability. I’d like to add the original data points on which the predicted probabilities are based to the wireframe. I’ve followed some of the previous post on this but get stuck :
## first part yields the wireframe##
setwd("C:/Temp")
rnp <-
2009 May 05
2
Lattice: use levelplot as panel for wireframe
Hi,
I want to draw a figure similar to http://dsarkar.fhcrc.org/lattice/book/images/Figure_13_07_stdBW.png
from http://lmdvr.r-forge.r-project.org/figures/figures.html (figure
13.7) . However instead of using a contour plot as a panel for the
wireframe I want to use a levelplot. Can somebody help me with this?
Thanks in advance for any help,
Kind regards,
Anton Bossenbroek
2003 Feb 10
2
Wireframe (lattice) questions
I have a few questions on formatting wireframe plots:
1. How can I remove (or at least "white-out") the border on the plot?
(I.e., the 2-d box around the whole plotting area, not the 3-d cube). I'm
willing to hack the code if necessary.
2. Is it possible to suppress plotting of all sides of the cube except
for the axes?
3. Is there a reliable way to print expressions in
2003 Jul 16
1
wireframe question
Hi,
I'm probably being dense, but could somebody tell me how I can get tick marks on the axes of my wireframe plot to show up?
This gets me a beautiful looking plot, but no ticks:
wireframe(z ~ x * y, data, drape=T, colorkey=F)
Thanks in advance,
-James
[[alternative HTML version deleted]]
2010 Feb 02
1
Changing direction of an axis in cloud or wireframe plot
Is there a way to change the direction in which an axis is plotted in
cloud/wireframe?
For example, for the following code:
g <- expand.grid(x = 1:10, y = 5:15, gr = 1:2)
g$z <- log((g$x^g$g + g$y^2) * g$gr)
wireframe(z ~ x * y, data = g, groups = gr,
scales = list(arrows = FALSE),
drape = TRUE, colorkey = TRUE,
screen = list(z = 80, x = -60))
Is there a
2009 Jul 30
2
wireframe color
Hello, hopefully simple question, but I cannot find the answer. I need to
change the color from the standard default. Still want the scaled colors,
but need different colors for different graphs.
Code is:
wireframe(z ~ y*x, mat.df,
drape = TRUE,
zlab = list("Water mass error (%)",rot=92), zlim=c(-50,180),
xlab = list("Resistance error
2007 Sep 27
3
different colors for two wireframes in same plot
Hello R,
According to:
g <- expand.grid(x = 1:10, y = 5:15, gr = 1:2)
g$z <- log((g$x^g$g + g$y^2) * g$gr)
wireframe(z ~ x * y, data = g, groups = gr,
scales = list(arrows = FALSE),
drape = TRUE, colorkey = TRUE,
screen = list(z = 30, x = -60))
i have two wireframes in one plot.
How could i change the color of the top - one to transparent (or only the grid).
2012 May 07
1
wireframe and par(mfrow)
Hello List,
I have some plots with the wireframe() function, and I'd like to
display them in a single jpeg file. I know that par(mfrow=c(x,y)) will
divide my display window in x rows and y columns, and although this
works with plot(), it looks like it's not working with wireframe.
here's my code:
library(lattice)
library(Cairo)
CairoJPEG("wiley-rank.jpeg", width=960,
2007 Mar 20
1
grid on a wireframe plot
Hello,
I want to do a surface plot with wireframe from the lattice package.
As for now I use the following command :
print(wireframe(m,main="% my title", colorkey=TRUE,
col.regions=rainbow(100), drape=TRUE,aspect =
c(1,1.0),ylab="y",xlab="x",zlab="z",
scales=list(arrows=FALSE)),split=c(1,1,3,2), more=TRUE)
How can I show the gridlines in a 3D surface
2010 Jul 06
2
grayscale wireframe??
I need grayscale formatting for a wireframe.
The only col.regions that I can find are color palettes are all colored:
rainbow(n, s = 1, v = 1, start = 0, end = max(1,n - 1)/n,
gamma = 1, alpha = 1)
heat.colors(n, alpha = 1)
terrain.colors(n, alpha = 1)
topo.colors(n, alpha = 1)
cm.colors(n, alpha = 1)
The code follows:
X11()
library(lattice)
par(family="serif", cex=1.2)
2007 Nov 29
1
Wireframe graph: black and white shading instead of color
All,
The code below produces a color 3D graph. I'd like to make it black and
white shading. I tried setting col.regions to FALSE but this just made it
completely white. I want the graph to look exactly as is, except black (or
grey) and white shading. Is this possible?
Cheers,
David
p.list = c(.01, .1, .25, .5, .75, .9)
cov.list = c(.2, .1, .05) ### leave out .01
X = rep(p.list, 3)
2010 Apr 06
6
3-D response surface using wireframe()
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
|
|
|
|