Displaying 20 results from an estimated 1000 matches similar to: "creating pdf of wireframe"
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)
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
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)
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
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,
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)
>
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
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
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).
2007 Sep 28
0
transparency of one layer in multiple wireframe plot
Sorry sending this again - is anyone familiar with multiple transparent wireframe plots?
I already checked the ?wireframe, but with no examples and as newcommer its hard to find out a correct code.
If we set drape=F in the example:
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
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
2007 Apr 13
2
graphics - wireframe
Hi,
I would like to know about graphics for response surface in R. What are
arguments for a best graphics?
thanks,
Bruno
y <- c(66,39,43,49,58,17,-5,-40,65,7,43,-22,-31,-35,-26)
x1 <- c(-1,1,-1,1,-1,1,-1,1,rep(0,7))
x2 <- c(-1,-1,1,1,0,0,0,0,-1,1,-1,1,0,0,0)
wireframe( y ~ x1*x2 ,
scales = list(arrows = FALSE),
drape = TRUE, colorkey = TRUE,
screen = list(z = 30, x = -60),
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
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'
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 Sep 22
4
Creating Movies with R
Dear All,
I'd like to know if it is possible to create animations with R.
To be specific, I attach a code I am using for my research to plot
some analytical results in 3D using the lattice package. It is not
necessary to go through the code.
Simply, it plots some 3D density profiles at two different times
selected by the user.
I wonder if it is possible to use the data generated for different
2010 Jan 06
1
Lattice Plot formatting problem/s
Hi
I am having difficulty getting the right format for a lattice plot I am
trying to produce.
Here is a pic of the plot as I get it now
http://i235.photobucket.com/albums/ee37/scotrivers/lattice_plot01.jpg
and here is the code I am using:
RN<-read.csv("N:/data.dat",header=T)
DATA<-RN[is.element(RN$age,0:3),] #select data on age
2006 Mar 04
1
Controlling (number of) wires in wireframe
Hi,
I would like to plot a wireframe (library: lattice) of the function f
(x,y)=x*y where x and y are equally evaluated between 0 and 1.
When one uses the option drape=TRUE then each "square" between the
"wires" (lines that build the surface shape) gets a certain color. A
perfect wireframe plot of a continuous surface would be, if you
(almost) can not distinguish
2008 Feb 15
2
wire.frame tick labels from matrix
Dear R Users, close to the end of this I used wireframe to create a 3D plot
from a matrix. The x and y axis tick labels (1-6) for each were created
from the matrix being a 6X6 matrix. I need the axis tick labels to be the
row and column headings which you can see in the output (mat.x). I have
tried several work arounds, but they have not been successful.
Thanks in advance. keith
rm(list=ls())