similar to: Correct NAMESPACE approach when writing an S3 method for a generic in another package

Displaying 20 results from an estimated 5000 matches similar to: "Correct NAMESPACE approach when writing an S3 method for a generic in another package"

2011 Dec 09
1
rgl.postscript() failure when saving a scene
Dear all, I write to the community to know if other people expierenced the same problem. I want to save a rgl scene where I plotted a 3d cloud of spheres whose radius is set proportional to a given variable and coloured by another group variable and with 95% ellipsoids for distribution of any group. I had no problem at all for coding but I had two problem when saving the scene (in any format)
2010 Jul 23
1
greek letters in rgl plot3d
Dear RGL experts, I haven't been able to add greek letters to my rgl plot3d. I have tried "expression" with no success. Here is the interested bit: > library(rgl) > cb <- cube3d() > plot3d(cb,xlab=expression(alpha),ylab="",zlab="",box=FALSE,alpha=0.5) The expression(alpha) appears as "alpha", rather than as a greek symbol. I suspect greek
2016 Jan 30
2
Best way for rgl's .onLoad to fail?
On OSX and Linux, the rgl package currently requires X11 libs to be available for linking. Recent versions of OSX don't include them by default, so I'd like rgl to fail nicely. Ideally, it will load a library that doesn't need to link to the X11 libs but will still allow WebGL code to work, but that's complicated, so I'd like a stopgap. I can detect that the failure is
2023 Jan 26
1
Failing to install the rgl package
Hi, I try to execute the seven lines of code below to plot a graph. But I am failing as the messages below show. Where am I going wrong? install.packages("rgl") library(rgl) y_hat = X%*%B_hat open3d(windowRect = c(100,100,900,900),family = "serif") color = rainbow(length(y_hat))[rank(y_hat)] plot3d(educ,exper,wage,col = color,type = "s",size = 0.5,xlim =
2010 Jan 07
1
adding 3D arrows to 3D plots
Greetings, I would like to add 3D arrows (i.e. arrow-headed vectors linking X1Y1Z1 to X2,Y2,Z2) to a 3D plot; ideally the sort of plot that can be rotated interactively. Is this possible using plot3d, or another 3d plotter in R? While it is easy to draw segments in plot3d (e.g. below), I haven't figured out how to add arrow heads, or to create 3d arrows from scratch. ##two headless
2011 Jun 08
1
3D-plotting a 2D-matrix that contains z-values (3rd dimension)
Hello, say I have a 2D-matrix (indexed by x and y), which contains z values, which I want to plot over x-y. Either dotted, or if possible as a landscape. I tried around with persp and plot3d (from rgl) and persp3d (from rgl). I sometimes get something that looks good and a while later, when trying some new data I need to worry about that again. Is there something lika a convenience function
2009 May 11
1
3d Scatterplot using rgl
Hi, I am trying to plot a 3d scatter plot using the rgl package but am having trouble. I have a matrix containing x, y and z co-ordinates and a fourth element related to a count variable. I would like to plot the points using plot3d with the sizes of the points related to the fourth element in the matrix. Is this possible with plot3d or do I need to use something else? I include a small example
2019 Jan 18
2
plot3d con library(rgl)
Buenas tardes. ¿Sabe alguno de vosotros cómo indicar la variable con la que identificar los puntos con plot3d? library(rgl) plot3d(Data$RTLML,Data$JD,Data$SB) Las muestras pertenecen a una de dos categorías, según la variable "Family", pero no sé cómo hacer que me las represente de diferente color. Gracias, Manuel . -- Dr Manuel
2010 Jul 27
1
rgl package don't draw points with a color over points with another color
I want to plot points with different colors to show different selections of points in a 3d plot. My problem is that if I plot a red point at a location where already a blue point was plotted, than the point is still blue. Is there a parameter or so which can be used to draw over a existing point? Example: > require(rgl) > open3d() > plot3d(a<-c(1,2,3,4,5),a,a,type="l",
2016 Feb 01
2
Best way for rgl's .onLoad to fail?
>>>>> "BH" == Bryan Hanson <hanson at depauw.edu> >>>>> on Sun, 31 Jan 2016 09:50:46 -0500 writes: BH> I think the 2nd option will be more palatable to BH> inexperienced users, but both do state the important BH> detail. Bryan >> On Jan 30, 2016, at 4:11 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
2009 Jul 09
2
Save rgl plot3d Graph as Image
Dear Users: I wish to save 3d scatter plots I have generated using the plot3d command in the rgl package. Any image format such as .tiff would work. Can anyone tell me how to do this? Thank you [[alternative HTML version deleted]]
2008 Dec 16
1
surface contour plot help
I am trying to do a surface profile plot. data is X                  Y(1)             Z(1) 1-jan-02       2002        number 2-jan-02       2002        number . . . 1-jan-03       2003 (Y2)     number Z(2) 2-jan-03       2003 (Y2)     number Z(2) . . . until dec 31 2007.   I used the plot3d funtions to build a scatter point plot. Call rinterface.rrun("library(rgl)") Call
2010 Apr 28
1
What is the best way to plots surfaces in 3 dimensions?
Hi R help, What is the best way to plots surfaces in 3 dimensions? I also have the following availability problem with "plot3d" and "scatterplot3d", and "wireframe": install.packages("scatterplot3d") Warning: unable to access index for repository http://cran.ch.r-project.org/bin/macosx/leopard/contrib/2.10 Warning message: In getDependencies(pkgs,
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
2016 Feb 01
1
Best way for rgl's .onLoad to fail?
If I recall it correctly, at least on Linux, rgl only needs X11 when rgl.useNULL(FALSE). Is that correct? If so, I would say dependency on X11 is optional and therefore you should be able to load the package even without X11. Or is it that it still requires X11 libs but not an X11 server? My $.02 /Henrik On Mon, Feb 1, 2016 at 1:44 AM, Duncan Murdoch <murdoch.duncan at gmail.com>
2008 Oct 10
2
rgl-snapshot failed (err-msg: "failed")
Hello, I tried to use rgl.snapshot and it failed. The error message was not very verbose: ====================== > > > plot3d( motion[[idx+2]], motion[[idx+1]], motion[[idx]] ) > rgl.snapshot(filename="/tmp/shot_01.png", fmt="png") [1] "failed" > ====================== There was a graphic created by rgl, but the snapshot was not created. The
2008 Jan 06
3
Can a dynamic graphic produced by rgl be saved?
Dear r-helpers, Can one save a dynamic graphic produced by rgl, e.g.: open3d(); x <- sort(rnorm(1000)); y <- rnorm(1000); z <- rnorm(1000) + atan2(x,y); plot3d(x, y, z, col=rainbow(1000), size=2) as a dynamic figure that can be embedded in a pdf? _____________________________ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400
2007 Jul 07
3
color scale in rgl plots
Hello, I'm trying to make a 3d plot using rgl in which the size and color of each point corresponds to certain attributes of each data point. The color attribute, let's call it X, is scaled to go from 0 to 1. The rainbow(64,start=0.7,end=0.1) palette is perfect for what I want but I don't know how to take that palette and pick a color from it based on the value of X for a given data
2011 Jul 29
2
change pch in 3dplot, export graph
Hello I was wondering if anyone has been able to change the pch value for points in 3dplot()? I am able to change point colors just not symbol types. I have included a portion of my code below. I realize this won't work outside of my script, but thought, maybe there is something obvious that I am doing wrong. Also is it possible to utilize the interactive feature of 3dplot in a
2008 Jun 24
2
problem with rgl interactivity with R-2.7.1 and Ubuntu Hardy
I'm trying to use the rgl package on R-2.7.1 running on top of Ubuntu Hardy amd64. using open3d() and plot3d() I get a plot, but it is not interactive. Furthermore, changes to par3d("FOV"=my.new.value) do nothing. I suspect something is wrong with the rendering engine or interface to it. I do have an Nvidia driver installed and compiz works correctly on the desktop. I've