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

Using ggplot #14

Open
ptitpoulpe opened this issue Feb 7, 2013 · 1 comment
Open

Using ggplot #14

ptitpoulpe opened this issue Feb 7, 2013 · 1 comment

Comments

@ptitpoulpe
Copy link

I try to use rserve-ruby-client but I got a probleme with ggplot that don't display.

I first try this:
r.eval("ggplot(df, aes(x=size,y=mem)))")
and then that:
r.eval("print(ggplot2::qplot(df, aes(x=size,y=mem)))")
that give me the error
Error in unit(at, "native") : 'x' and 'units' must have length > 0

@obromios
Copy link

obromios commented Oct 24, 2017

I tried to save the last plot using
con.eval('ggsave("temp_gg2.png", device="png")')
This returns
#<Rserve::REXP::Null:0x007f8da96c2ff8 @attr=nil>
and the actual R server outputs
Saving 7 x 7 in image
but no such file is created anywhere on my disk.
I have created the same plot in Rstudio and the plot is displayed and can be saved using ggsave.

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

2 participants