Displaying 20 results from an estimated 4000 matches similar to: "Using contour3d: axes, plotting to file, with lattice"
2010 Mar 03
2
Screen settings for point of view in lattice and misc3d
I'm making some 3D plots with contour3d from misc3d and wireframe from lattice. I want to view them from below; i.e. the negative z-axis. I can't figure out how to do so. I would like my point of view looking up from below, with the z, y, and x axes positive going away. Can anyone tell me the correct settings for screen to achieve this? Here is what I've found so far:
2011 May 12
2
Exporting interactive 3D plots with axes and labels
Hi,
I have a question about exporting interactive 3D plots. I use the following code to plot a contour of a trivariate normal distribution:
library(mvtnorm)
library(rgl)
library(misc3d)
n=25
x=seq(-3,3,length=n)
X=cbind(rep(x,each=n**2),rep(rep(x,each=n),n),rep(x,n**2))
p=array(dmvnorm(X,sigma=diag(3)*0.5+0.5),c(n,n,n))
contour3d(p,x,x,x,level=mean(p))
lim=c(-3,3)
2012 Nov 16
2
Question about contour3d and writeWebGL: rgl and misc3d package
I saw that in rgl:::writeWebGL that "Polygons will only be rendered as
filled; there is no support in WebGL for wireframe or point rendering.". I
found that you can easily use contour3d to make reproducible contour web
figures, such as (taken from contour3d help)
library(AnalyzeFMRI)
a <- f.read.analyze.volume(system.file("example.img", package=
2010 Mar 15
1
Eliminate border in wireframe plot
How can I eliminate the border drawn by default around a wireframe plot? I've tried using border=NA and box=FALSE to no avail.
Scott Waichler
Pacific Northwest National Laboratory
scott.waichler at pnl.gov
2013 Mar 10
1
misc3d Contour export to vtk
So I wanted to export a contour3d object into VTK and it worked well
enough, except the top of the ball (the contour) was missing. Example
below, or gist here:
https://gist.github.com/muschellij2/5126544
rm(list=ls())
require(misc3d)
f <- function(x, y, z) x^2+y^2+z^2
x <- seq(-2,2,len=20)
ball <- contour3d(f,4,x,x,x, draw=FALSE)
drawScene.rgl(ball)
### get the triangles
allids
2011 Oct 15
2
Irregular 3d objects with rgl
Hello,
While exploring if rgl is along the lines of what I need, I checked out
demo("rgl") and didn't find quite what I'm looking for, and am therefore
seeking additional help/suggestions.
The application is geared towards displaying a 3D rendering of a contaminant
plume in the subsurface with the following highlights: Once the plume was
rendered as a 3D object, a
2008 Nov 12
1
rimage doesn't install on Mac OS X 10.4
Hi,
I'm trying to install rimage on a Mac OS X 10.4 machine. I followed the
advice in previous R-help threads and got over the hurdles of having the
header files in the right places, among other things. But I can't
figure out what to do with this error.
ice.pnl.gov:/home/waichler<949>system_profiler -detailLevel mini
SPSoftwareDataType
Software: System Software Overview:
2005 Apr 22
3
Problem with R-2.1.0: install.packages() doesn't work
I installed R-2.1.0 from source on a Linux box running Red Hat
Enterprise Linux WS release 4 but install.packages() wouldn't work (see
below). When I install R-2.0.1 from RPM on the same system, everything
is fine.
Version 2.1.0 (2005-04-18), ISBN 3-900051-07-0
. . .
> options(CRAN = "http://cran.fhcrc.org/")
> install.packages("rgenoud")
--- Please select a CRAN
2006 Jun 27
3
Possible to get a definition of a function from a package to use without invoking the package?
Hi,
I often use the mod() and instring() functions that are available in the
clim.pact package. This package has a lot of dependencies, including
installation of netCDF, and I haven't yet been able to get
library(clim.pact) to work on a Mac OS 10.4.6. A previous request for
help with the Mac problem yielded no results, so now I wonder if I could
just extract the definitions for the couple
2008 Oct 13
2
Using an image background with graphics
I would like to use a map or aerial photo as a background to plotting
solid lines and text, and semi-transparent color contours, in base and
lattice graphics. Plot coordinates need to be consistent with the
georeferenced background. For example, a color contour plot would have
an gray-toned aerial photograph as a background for overprinted
semi-transparent color contours of some spatially
2004 Oct 14
3
Problem with number characters
I am trying to process text fields scanned in from a csv file that is
output from the Windows database program FileMakerPro. The characters
onscreen look like regular text, but R does not like their underlying binary form.
For example, one of text fields contains a name and a number, but
R recognizes the number as something other than what it appears
to be in plain text. The character string
2007 Apr 25
2
levelplot and unequal cell sizes
I am using levelplot() from lattice with grids that have unequal cell
sizes. This means that the boundary between two cells is not always
half-way between nodes, as levelplot() assumes. The result is that some
cell sizes are rendered incorrectly, which can be painfully obvious if
using relatively large cells. Is there any work-around? I am using the
conditioning capability of lattice and
2006 Jan 14
2
change lattice panel background color
I can't find a way to change just the panel background color in lattice.
I would like NA regions in levelplot() to appear black. I've tried the
trellis.par.set() stuff, but it it makes the background of the whole
graphic black.
Thanks,
Scott Waichler
Pacific Northwest National Laboratory
scott.waichler _at _ pnl.gov
2002 Mar 27
2
Vertical bars with barchart()
I would like to create a barchart that has vertical instead of horizontal
bars. My goal is something similar to Figure 6.10 (p. 166) in
"The Basics of S and S-plus," except for the orientation of the bars.
I don't think bwplot() or xyplot() will work. Any suggestions?
Scott Waichler
Hydrology Group/Environmental Technology Division
Battelle Pacific Northwest National Laboratory
2002 Feb 06
1
dev.off() prematurely stops xyplot()
I have a script containing an xyplot() to print to a postscript
file, followed by dev.off(). When I source the script, the dev.off()
seems to cut off the xyplot() execution before it is finished.
The resulting postscript file has about the right size, but it
appears blank when I try to view it. If I manually execute the
xyplot(), then wait for the return of the R prompt before executing
2003 Nov 13
1
Can't get Sweave syntax highlighting with Emacs
I can't get Emacs to automatically do syntax highlighting of
Sweave files. I have followed Friedrich's suggestion for code
to insert into my .emacs file. The complete section from my .emacs
file is given below. When I load a *.Snw file, font is white until I press
M-x, then the first code and document chunks get highlighted, but not
the rest of the file. Latex and Noweb menus are
2006 Apr 20
1
Parallel computing with the snow package: external file I/O possible?
Hello,
After getting help to solve part of my problem and some delay on my
part, I am posting a more refined version to see if someone can help me
further. I am trying to autocalibrate a model in my subject area using
the snow and rgenoud packages. I want to use the key function "fn" that
is called by genoud() to finalize input, run the model executable, and
compute the objective
2005 Mar 02
1
Rounding parameter values in genoud(), Rgenoud package
I would like to limit the significant figures of the calibrated
parameters determined by genoud() in the Rgenoud package. Below is some
example output, where column 1 is model run number, columns 2-7 are the
parameter values, and columns 8-12 are model fit statistics. I would
like genoud to internally limit parameters to 4 decimal places as shown
in this output. It is clear that the function is
2004 Aug 31
4
Problem with seq.dates in chron
I get faulty output from seq.dates() if I specify a length that is too
long.
For example, I ask for 129 months in the following call to the function,
but it returns
131:
> R.version.string
[1] "R version 1.9.1, 2004-06-21"
> startdatetime <- chron(dates="01/01/1995", times="00:00:00")
> beg.month.datetimes <- seq.dates(from=startdatetime,
2005 May 02
1
Trying to understand kpss.test() in tseries package
I'm trying to understand how to use kpss.test() properly. If I have a
level stationary series like rnorm() in the help page, shouldn't I get a
small p-value with the null hypothesis set to "Trend"? The (condensed)
output from kpss.test() for the two possible null hypotheses is given
below. I don't see any significant difference between these results.
> x <-