Displaying 20 results from an estimated 11000 matches similar to: "scratch a figure"
2003 Dec 25
6
Plot a sphere
Hi,
I'm new to R (and math ;) Would somebody please be so kind as to direct me
in plotting a 3D sphere?
I tried something in the lines of:
####
y <- x <- seq(-pi, pi, length=pi*10)
f <- function(x,y)
{
z <- sqrt(pi - x^2 - y^2)
#z[is.na(z)] <- 0
z
}
z <- outer(x, y, f)
persp(x, y, z, theta = 120, phi = 30)
####
I've also tried: .... make.surface.grid(...) ..
2006 Dec 11
2
updating rgl on debian stable
Running: R Version 2.3.1 (2006-06-01), debian stable
I'm testing an application that uses rgl (installed with apt-get install
r-cran-rgl)
but fails, at least partly because that application uses a more current
version.
There is also a mysterious error msg from Xlib:
> library(car)
> library(rgl)
> iris.mod <- lm(cbind(Sepal.Length, Sepal.Width, Petal.Length,
Petal.Width) ~
2005 Oct 05
3
transparent surface in rgl
Hi all
I am a complete newbie to this list (just subscribed) and a newcomer to
R (an S user from olden times). I have been using scatter3d to create a
3d scatter plot with surface. The graphic is created within the rgl
package and I have used rgl.postscript to export it so I can generate a
publication quality image. My problem is that the plotted surface is no
longer transparent in the
2008 Jun 21
1
question on rgl.surface
I'd like to use rgl.surface (or some other function if more
appropriate) to create a horizontal and vertical transparent grey
slice (plane) running through both the x and y origins and extending
across the z axis, i.e. the 3-d equivalent of the normal 2-d
coordinate axes we are all familiar with. The examples for rgl.surface
are a bit more complex than what I need and I am having trouble
2008 Jun 16
2
Plotting 3d data?
Hi all!
I'm very new to R, and I'm having trouble figuring out how to go from a file
of points that I have to a 3d surface plot of the data. I typically have
something like this:
X Y Z
0.005 0.023 34.45
0.0035 0.63 28.48
.
I've tried looking at the persp and wireframe packages, and the rgl package,
but I can't seem to figure out how to
2019 Jun 02
3
rgl install for R 3.7
I?ve installed R 3.7.0 on a new laptop running macos 10.14.5 and have managed to get most of my usual packages
to compile from source with a ~/.R/Makevars file that looks like this:
CC=/usr/local/clang8/bin/clang
CXX=/usr/local/clang8/bin/clang++
LDFLAGS=-L/usr/local/clang8/lib
CPPFLAGS=-I/usr/local/clang8/include -I/opt/X11/include/freetype2
FC=/usr/local/gfortran/bin/gfortran
2015 Nov 04
2
navigation mode(s) in rgl
Hello, I've CCd' Duncan Murdoch as the rgl maintainer, but I'm also keen to
hear from the broader community of any insights.
In rgl my understanding is that there's only one rotation-navigation mode,
where you left-click hold and the view pivots abound the centre of the
scene.
In other tools, including Google Earth, that is the default behaviour but
there's also a
2009 Mar 12
3
can I draw 3D plot like this using R?
hi, all
I am looking at R package RGL to draw a colored mesh/surface plot like
this one (from matlab).
http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/cbar.gif
The key features I am looking for is surfaced with grid and color, but
not the terrain-like gradient. but I didn't come even close to it
after browsing through rgl help file.
have anyone drawn something like this
2011 Jul 31
3
export/import matrix
Hello
I have a problem on keeping the format when I export a matrix file with the write.table() function.
When I import the data volcano from rgl package it looks like this in R:
> data[1:5,]
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14]
[1,] 100 100 101 101 101 101 101 100 100 100 101 101 102 102
[2,] 101 101 102 102 102 102 102
2008 Nov 20
1
Math Expression in 3D Plots
Is there anyway to label axes in 3D plots with mathematical expressions?
In the code below, I want to replace "delta_yrsed" with what "\Delta
\widehat{yrsed}" represents in TeX, but the [xyz]lab parameters of title3d
appear to only accept character strings.
require("rgl")
fn.delta.yrsed <- function(dist, delta.dist,
2008 Nov 21
2
rgl lighting question
Hi, I'm using rgl to generate a 3D surface plot and I'm struggling to
get the lighting correct. Currently the surface gets plotted, but is
very 'shiny'. On rotating the view, I get to see parts of the surface
- but overall I don't see much detail because of the spotlight like
lighting.
I've played around with the specular, ambient and diffuse but I can't
2006 Feb 01
1
akima 0.4-5, interpp() bug = COMMON block problem
Hi,
I'm currently hunting a bug in the akima library, especially in the code
behind the interpp.old function (bi-variate linear interpolation).
It is based on a triangulation algorithm, interpolation at a given point
needs to know the triangle which contains this point, then the
interpolation is a straightforward calculation based on the three
vertexes.
The problem is: Sometimes the triangle
2017 Oct 19
1
overlaying points and lines on a surface3d rgl plot with axes
Hi R users and experts,
I am interested in learning more about the use of 3D plots. Specifically, I
want to add points and lines to a surface plot. And get the axes and labels
plotted also. Here is what I have tried with an example data set :
library(rgl)
vol2 <- 2*volcano # Exaggerate the relief
library(reshape)
mvol2 <- melt(vol2)
str(mvol2)
# First, persp and persp3d plots do not succeed
2007 Dec 08
1
OT: 3d surfaces with transparency
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I would be grateful if anyone had suggestions
about software that could (1) create 3D surface
plots, (2) handle transparency/alpha blending,
(3) generate output in some vector graphics format
that preserved the transparency. I could also
live with a combination of two programs, one
to generate the basic figure and another to
modify the output
2010 Sep 29
2
R crashes when loading rgl package before minqa package
Hej,
Calling newuoa (from the minqa package) makes R crash when the package rgl
is loaded first. This however only on certain selected data.
The data used for testing (saved to 'bugs.R'):
xvals = c(1,2,4,5,7,8,9,10,11,12,14,15,16,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36)
yvals =
2006 Jul 12
2
Error install rgl package on linux
Dear all,
I tried to install rgl package on my linux machine fc5, I got an error.
Here I run R as user,
$ R
> options(repos=c(CRAN="http://cran.at.r-project.org/"))
> install.packages("rgl", lib="/home/subianto/local/lib/R/library/site-packages", dependencies=TRUE)
trying URL 'http://cran.at.r-project.org/src/contrib/rgl_0.67-2.tar.gz'
Content type
2020 Oct 22
0
3d plot of earth with cut
On 21/10/2020 8:45 a.m., Balint Radics wrote:
> Hello,
>
> Could someone suggest a package/way to make a 3D raster plot of the Earth
> (with continent boundaries), and then make a "cut" or "slice" of it such
> that one can also visualize some scalar quantity as a function of the
> Radius/Depth across that given slice ?
>
> Formally, I would have a
2006 Apr 12
1
Newbie question: setting rgl.surface plot attributes
I don't seem to be able to label the x, y or z axis when creating a 3d chart
using rgl.surface. I'd like to have them parallel to the axis line and move
with the graph when rotated. Can this be done?
Many thanks,
J. Retzer
[[alternative HTML version deleted]]
2009 Nov 26
13
How to display an image on RGL plot?
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525177/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
coerced to the matrix.
Spheres denote control points, collected from this picture and must be
2013 Mar 19
1
RGL 3D plots are flat. Please Help
Hello,
I have a matrix of simulated data that I want to plot as a 3D surface using RGL. Have followed the documentation carefully, but my plot only contains a weird "single slice" of the data.
The actual RGL library and dependance seem fine as all of the demo code plots beautifully.
The actual command I'm using is: rgl.surface(x,z,d,