Hello,
I have troubles getting nice looking plots of projections into R:
First I tried to get the olive dataset into R:
>o <- ggobi(ggobi_find_file("data", "olives.csv"))
** (rsession.exe:7804): CRITICAL **: datad_init: assertion `d->nrows > 0' failed
After that I managed to get it into R like this but it dosent look the same as if I open the dataset in Ggobi with file->open:
olive <- read.table("C:\\Program Files\\ggobi\\data\\olive.csv", header=T, sep=",")
olive <- olive[,-1]
o <-ggobi(olive)
In the next step I wanted to get some projections from a 1D and 2D Tour into R using ggobi_display_get_tour_projection after pausing the projection and i get an error again
display(o[1], "2D Tour")
ggobi_display_get_tour_projection(o)
** (rsession.exe:7804): CRITICAL **: An R GGobi display object must inherit from class 'GGobiDisplay'
** (rsession.exe:7804): CRITICAL **: RS_GGOBI_getPModeName: assertion `GGOBI_IS_DISPLAY(display)' failed
** (rsession.exe:7804): CRITICAL **: An R GGobi display object must inherit from class 'GGobiDisplay'
Error in .GGobiCall("getTourProjection", gd, pmode(gd)) :
CHAR() can only be applied to a 'CHARSXP', not a 'NULL'
Because this did not work I just saved the projections with Save Display Description and read it into R with dd_load. This worked but then there was another problem: The legend covers some of the points and I did not find a way to move it to another postion.
(I tried to attach this file to this post but it says that it is
inadmissible)
Hole <- dd_load("...path...\\1DHoles")
plot(Hole)
I also tried print(ggplot(Hole)) which didnt looked better.
Finally my last question: Is it possible to plot a Spineplot in R from a file that I saved with Save Display Description, because in the R-Help it says that this feature is not yet implemented?
Thanks a lot and I apologize for any spelling mistakes, my english is not very good...
Best regards,
Raphael