Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggplot2 doesn't open a graphic windows #7

Open
diegozea opened this issue May 22, 2013 · 3 comments
Open

ggplot2 doesn't open a graphic windows #7

diegozea opened this issue May 22, 2013 · 3 comments

Comments

@diegozea
Copy link
Contributor

But, plot() works fine:

julia> using Rif

julia> initr()
Using R_HOME=/usr/lib/R
0

julia> R("library(ggplot2)")
RArray{ASCIIString,1}(Ptr{Void} @0x0000000006a3b8f8)

julia> R("qplot(1:4,1:4,geom=\"point\")")
RArray{Sexp,1}(Ptr{Void} @0x0000000006ffefe0)
@lgautier
Copy link
Owner

I don't have access to a recent install of Julia+Rif when writing this. This might be because R is in "non-interactive" mode, and then the plot are created in a file located in the current working directory. R("dev.off()") would then be needed to ensure that the file is complete.

@diegozea
Copy link
Contributor Author

Calling dev.off() gives an error and Julia crashes after that:

julia> R("dev.off()")
Error en dev.off() : cannot shut down device 1 (the null device)

 *** caught segfault ***
address (nil), cause 'memory not mapped'

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection: 2
dzea@deepthought:~$ 

There isn't not new file on the working directory.

@randy3k
Copy link
Contributor

randy3k commented May 7, 2014

Try this

R("print(qplot(1:4,1:4,geom=\"point\"))")

But I think there is still another problem here.
I am using Mac, and the quartz window freezes when I plot, doesn't matter plot or qplot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants