[R] R plotting on linux, regardless of architecture of local machine
Erik Iverson
eriki at ccbr.umn.edu
Fri Jun 4 22:36:03 CEST 2010
vaneet wrote:
> So just so I understand properly, if there are multiple users connecting to
> this remote linux machine in which I installed R and lets just say they all
> have Windows machines. To view plots they would all need to have an SSH
> client and an X server installed on their local machine to do this?
Yes, with X11-forwarding enabled when the SSH connection is established.
Usually this would not be the default.
> You said that X11 is the default graphic device on Linux, isn't there some way
> of using X11 in R to show the plot while logged in to the remote linux
> machine?
Yes, by running an X11 server on the Windows machine, as others have
suggested.
In some situations, I have just left open a GUI SFTP client to some
directory where my R plots get generated. After my script is done, I
then simply double-click the graphics file to open it.
Perhaps there is some image or PDF viewer out there that can load a
remote file, and then 'watch' it so that when it changes, it reloads
automatically. I suppose that's another option. I know programs exist
that can do this when the file is local.
Perhaps Dropbox could be used as a solution.
Running the X server is going to be the easiest in my opinion, though.
More information about the R-help
mailing list