[R] rgl snapshot command
Uwe Ligges
ligges at statistik.uni-dortmund.de
Fri Aug 13 09:22:49 CEST 2004
Joern Kamradt wrote:
> Hi,
> I am using the rgl package for 3D display. Unfortunately, I am not able
> to get the snapshot command running.
> I tried the following:
>
> > example(rgl.surface)
>
> rgl.sr> data(volcano)
> rgl.sr> y <- 2 * volcano
> rgl.sr> x <- 10 * (1:nrow(y))
> rgl.sr> z <- 10 * (1:ncol(y))
> rgl.sr> ylim <- range(y)
> rgl.sr> ylen <- ylim[2] - ylim[1] + 1
> rgl.sr> colorlut <- terrain.colors(ylen)
> rgl.sr> col <- colorlut[y - ylim[1] + 1]
> rgl.sr> rgl.clear()
> rgl.sr> rgl.surface(x, z, y, color = col)
> > rgl.snapshot(filename="./volcano.png",fmt="png")
> [1] "failed"
>
> Any help is highly appreciated
Works for me on WinNT4, R-1.9.1, rgl-0.64-13.
Please read the posting guide to learn that you missed to specify:
OS (and its version), R version, rgl version. Also, for questions like
this, it is a good idea to ask the package maintainer.
Uwe Ligges
> Joern
>
>
>
> __________________________
>
> Joern Kamradt, MD
> Cancer Genetic Branch
> National Human Genome Research Institute
> National Institutes of Health
> 50 South Drive, building 50, room 5147
> Bethesda, MD 20892-8000, USA
> Phone#: +1 (301) 496 5382
> FAX#: +1 (301) 402 3241
> Email: jkamradt at nhgri.nih.gov
> Website: www.genome.gov
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list