# R graphics/plots in sagenb

Are graphics in R on sagenb supported? I only get placeholder icons for output.

R graphics/plots in sagenb

Are graphics in R on sagenb supported? I only get placeholder icons for output.

add a comment

1

Short answer: yes, they are.

Long answer: it depends on the precise platform and how your R was compiled, what was on it.

- On Mac, they
*should*"just work", though I've heard rumors it is not always true. - On Linux, there are various packages you may need, and once in a while a binary is uploaded which was not compiled with them. One resource might be this ask.sagemath.org question. This ticket may also be of use.
- On the xyz.sagenb.org machines, you should be ok. I've used R graphics on them many times.

Edit: Turns out that the poster actually just needed to create a graphics device and turn it off - see this documentation, where this is implicit. Hope this helps someone!

I got the same problem. I just followed: http://ask.sagemath.org/question/192/compiling-r-with-png-support installed all the libraries, compiled the R and r.eval('capabilities("png")') returns true, and r.eval('capabilities("X11")') returns False. When I plot something in R, I get a broken icon (I am running Sage 5.9 via ssh from a remote server).

1

Asked: **
2011-09-14 15:43:13 -0500
**

Seen: **457 times**

Last updated: **Oct 16 '13**

how to plot a circle (without circle())

Showing a Graphic3d object [closed]

How do you get a 2d version of a 3d plot?

draw all faces of alcoves (affine root system)

transforming 2D plots to the surface of a sphere

Embedding R graphics device in Sage notebook

Vector-graphic graphs of small size

2D interpolating function from numpy arrays to spherical-plot3d

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.