3D scatterplot on Windows

55 views
Skip to first unread message

Vincent

unread,
Nov 25, 2012, 1:51:20 AM11/25/12
to ded...@googlegroups.com
This may be a JGR question but when I try to create a 3D scatterplot using the Extra's menu JGR hangs as soon as I try to resize or rotated the plot.

3D scatterplot works fine on my mac.

Ian Fellows

unread,
Nov 25, 2012, 2:12:56 AM11/25/12
to ded...@googlegroups.com
I'm not able to reproduce this on my system (mac os 10.8, sessionInfo
below). Just to clarify whether this is a JGR or Deducer issue.
without Deducer loaded is the problem present with:

data(iris)
library(car)
library(rgl)
scatter3d(iris$Sepal.Length,iris$Sepal.Width,iris$Petal.Length,group =
iris$Species,surface = FALSE)


best,
ian



R version 2.15.1 (2012-06-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] grid splines stats graphics grDevices utils
datasets methods base

other attached packages:
[1] mgcv_1.7-22 rgl_0.92.894 DeducerExtras_1.6 irr_0.84
lpSolve_5.6.6
[6] Deducer_0.7-5 e1071_1.6-1 class_7.3-5 plyr_1.7.1
foreign_0.8-51
[11] effects_2.2-1 colorspace_1.2-0 lattice_0.20-10
multcomp_1.2-14 survival_2.36-14
[16] mvtnorm_0.9-9993 car_2.0-15 nnet_7.3-5 MASS_7.3-22
JGR_1.7-11
[21] iplots_1.1-4 JavaGD_0.6-1 scales_0.2.2
ggplot2_0.9.2.1 rJava_0.9-3

loaded via a namespace (and not attached):
[1] dichromat_1.2-4 digest_0.5.2 gtable_0.1.1
labeling_0.1 Matrix_1.0-10
[6] memoise_0.1 munsell_0.4 nlme_3.1-105
proto_0.3-9.2 RColorBrewer_1.0-5
[11] reshape2_1.2.1 stringr_0.6.1 tools_2.15.1

Vincent

unread,
Nov 26, 2012, 2:44:52 AM11/26/12
to ded...@googlegroups.com
I don't have this issue on my mac either. However, on windows the problem does pop-up with your code example.

From a clean install on windows 7 without Deducer I have this problem in JGR (1.7-12) but not from the R-gui. It seems this is a JGR issue then.  

On the JGR site the following sentence is included ("Please report any bugs or wishes related to JGR using the Bugzilla for JGR.") however the link doesn't work :)

Ian Fellows

unread,
Nov 27, 2012, 2:52:21 AM11/27/12
to ded...@googlegroups.com
Thanks for the report. I can confirm the problem on my vista machine.
I was frankly a bit surprised that rgl and hence the interactive 3d
scatterplot worked in the first place. rgl uses its own graphics
device, independent of Java and JGR. The best course of action is to
remove the functionality from DeducerExtras, which I have done in the
development version.

Vincent

unread,
Nov 29, 2012, 4:14:13 AM11/29/12
to ded...@googlegroups.com
Just curious ... why doesn't JGR call the same graphics device that the standard Mac/Windows gui does?

Alternatively, could JGR use a browser to display graphs? Perhaps linking to something like D3 (see link http://exposedata.com/hypercube/rotate/). That should work well cross platform correct?

From what I'm reading Hadley Wickham may be going that direction with ggplot (http://civilstat.com/?p=536)

Ian Fellows

unread,
Dec 1, 2012, 4:47:03 PM12/1/12
to ded...@googlegroups.com
Most GUIs that take control of the REPL have their own graphics
devices, see R Studio for example. JGR uses a java device so that it
can have control over the back and forth communication between the
device and R. This is not up to JGR, rather rgl how it emits its
displays. The Deducer GUI for 3d plots was a very simple wrapper, so
it is not much of a loss to drop it.

best,
ian
Reply all
Reply to author
Forward
0 new messages