An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090323/712078e8/attachment-0002.pl>
Plotting with plot()
2 messages · Satindra Chakravorty, Peter Dalgaard
Satindra Chakravorty wrote:
I am trying to use the plot() function in R but can't seem to generate any plots. I am running R version 2.7.1 on a server machine to which I am remotely connected on a Linux platform. I typed
plot(trees$volume)
as a test and got back the ">" prompt with no plot in my current window or in any other window. I read in another post on this list about opening a graphics device with x11(). I tried that and got an ERROR message: Error in X11.... unable to start device X11 In x11() : unable to open connection to X11 display ' '. Please let me know what I should do.
Either look for Rplots.pdf in your current remote directory (after leaving R), or make sure that you have an X11 display to which R can connect and you can view remotely. The latter depends on how you are connected and from which kind of system. If you are using SSH from another Linux system running X11, it could be as simple as remembering the -Y option to ssh. If you are running Windows, things are more complicated (VNC is one option).
O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907