Displaying 20 results from an estimated 10000 matches similar to: "lattice.wireframe missing wireframe"
2011 Apr 01
1
Lattice wireframe or cloud plot with different colours by a group
I have a question about wireframe 3-D plots and how to apply colors. I have
a large dataset of river flow (m^3/s) over time, and I have coded these
flows based on their height. I would like to produce a wireframe plot that
colors the graph based on the flow code, i.e. I would like high flows to be
red, medium to be green and low flows to be blue. Here is some sample data
with the basic
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
2009 Jun 24
1
lattice wireframe within a loop ???
Hi,
I have the following problem. Calling wireframe within a loop results
into an empty window(s)
#generate some data
temp = expand.grid(A = 1:3,B = 1:3)
temp = cbind(temp, y1 = rnorm(9))
temp = cbind(temp, y2 = runif(9))
#plot y1 and y2 in two different windows
for(i in 1:2)
{
wireframe(y1 ~ A*B, temp, shade =T)
windows()
wireframe(y2 ~ A*B, temp, shade =T)
}
#However, calling it twice
2012 Nov 22
1
[lattice] Increase distance between tick labels and ticks in wireframe plot ("pad")
Hello,
I try to increase the distance between tick labels and ticks in a lattice wireframe plot. Here's a minimal example:
## Minimal example
x <- y <- z <- c(1,2,3)
df <- data.frame(x, y, z)
wireframe(z ~ x*y, df, scales = list(arrows = FALSE, col = "black", font = 1, tck=0.6))
I tried the axis.components option
2011 Oct 13
2
how to plot two surfaces with lattice::wireframe
Hi all,
I'd like to plot the Real and Imaginary parts of some f(z) as two
different surfaces in wireframe (the row/column axes are the real and
imag axes). I know I can do it by, roughly speaking, something like
plotz <- expand.grid(x={range of Re(z)}, y={range of Im(z), groups=1:2)
plotz$func<-c(Re(f(z),Im(f(z))
wireframe(func~x*y,data=plotz,groups=groups)
But that seems like a
2010 Jun 25
1
Trying to tile wireframe plots (using lattice package)
Hi all,
I'm trying to print a number of wireframe plots (generated using the
lattice package), and I want them to appear in a two-by two matrix along
with some other (standard) plots. In other words I am trying to create a
subplot or tiled plot that works for wireframes.
I've tried the methods discussed in:
http://tolstoy.newcastle.edu.au/R/e2/help/07/07/21238.html
but while they work
2007 Jul 06
1
Changing Tick Mark Values for lattice / wireframe
How can I change the tick mark values in lattice, specifically wireframe?
I have a 11*46 matrix of values that I am plotting using wireframe.
Unfortunely, the values range from 0.1-1.1 and 0.5-5. Using the code
below the tick marks have are (2,4,6,8,10) and (10,20,30,40).
Thanks in advance.
graphic5 <- wireframe(output.matrix, shade= TRUE,
scales = list(arrows = FALSE,
cex=.6,
2009 Mar 04
2
lattice: remove box around a wireframe
#Hi,
#
#somebody knows how to remove the outer box around a wireframe and
reduce the height
#
#
test = data.frame(expand.grid(c(1:10), c(1:10)))
z = test[,1] + test[,2]
test = cbind(test, z)
names(test) = c("x", "y", "z")
require(lattice)
wireframe(z ~ x*y, data = test, par.box = c(col = "transparent") ) #not
this one but the remaining outer box.
2008 May 30
1
Reducing space around lattice wireframe plots
Dear R-help.
When plotting 3D wireframe plots with the lattice package, there is often
a lot of space between the actual plot (i.e., cube) and panel borders. For
a single wireframe, this is not a problem, but when plotting multiple
wireframes, the wasted space decreases the size of the plots very much.
Is there a way to decrease this space/margin? I could not find any
information about it in
2006 Oct 19
1
A question regarding Wireframe in Package Lattice
Hello,
The following code produces a quadrilateral:
q<-matrix(c(1,3,1,2,3,1,2,4,2,1,4,2),nrow=4,byrow=T)
qc<-xyz.coords(q)
wireframe(z~y*x,qc)
I have 2 questions
1) How can i remove the bounding box i.e the cube encompassing the
quadrilateral?
2) Is there any function to get the 2D coordinates of the
quadrilateral actually used in the final plot ? I could manually
2009 Dec 18
1
lattice: shape of box around wireframe
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
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
2009 Jan 16
1
Lattice: how to have multiple wireframe nice intersection?
Hello,
This code builds a simple example of 2 wireframes :
require(lattice)
x <- c(1:10)
y <- c(1:10)
g <- expand.grid(x = 1:10, y = 1:10, gr = 1:2)
g$z <- c(as.vector(outer(x,y,"*")), rep(50,100))
wireframe(z ~ x * y, data = g, groups = gr, scales = list(arrows =
FALSE))
However, the intersection between the wireframes is not properly
drawn. Is there a way to fix this
2010 Feb 12
1
wireframe() help {Lattice}
Hi All,
I'm trying a 3D-plot using wireframe() from Lattice package. Below is my
code and sample data (read in "dta" object).
I'm wondering if it is possible to make center grid (curved) line more
prominent (or bold). The curved line I'm talking about is the center
line drawn for a fixed value of log(B) [i.e. log(8)=0.90]. Any help would be
highly appreciated. Thanks in
2010 Feb 20
1
Add lines (contours) to lattice wireframe plot
Hi,
I draw a surface corresponding to bivariate density of independent
variables (rho=0) using persp(). Then I add a contour line (i.e.,
circle in my case) at a particular density. Below is a minimal example
of what I have so far.
# Bivariate density
dnorm2d <- function(x, y, rho = 0) {
xoy = (x^2 - 2 * rho * x * y + y^2)/(2 * (1 - rho^2))
density = exp(-xoy)/(2 * pi * sqrt(1 - rho^2))
2010 May 22
1
Lattice Wireframe Plot into LaTex
Dear R/LaTex user,
I'm simply trying to include a plot created with the Lattice wireframe
function into LaTex. I have no problems including other R plots into LaTex
by exporting as a Postcript and then including the graph in LaTex using
\begin{figure}
% Requires \usepackage{graphicx}
\includegraphics[width=]{mygraph.eps}\\
\caption{}\label{}
\end{figure}
However, for some reason when I
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
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)
>
2004 Aug 06
1
: (Lattice): Overlaying more than one trend surface using contourplot() and wireframe()
Hi,
Is there a way to plot more than one trend surface using the functions
contourplot() and wireframe(). I have found an add=T in contour(), but
no equivalent argument in contourplot() and wireframe()?
I have taken the example 11-2 (pages 441-451) from Design and analysis
of experiments (Montgomery 2001, 5th edition) to see if this could be
done in R. I have managed to plot individual
2011 Apr 27
1
lattice wireframe with logarithmically scaled axis?
Hi,
I have some questions for the wireframe function of the lattice package. My dataset's "x-data" are sampled logarithmically and as such I would like to have a semilogarithmic 3D plot when plotting a time series. Does anyone know how to change the example in
http://addictedtor.free.fr/graphiques/sources/source_40.R
such that x or y would be logarithmically scaled?
Also, I would