[R] how to make R plot under Linux

K. Elo maillists at nic.fi
Mon Feb 22 16:52:56 CET 2010


Hi!

22.02.2010 17:45, xin wei wrote:
> 
> thank you for reply. I just type: hist(x) from SSH terminal, expecting a
> histogram to pop up like what i got under windows.....instead I got the
> following error msg:
> 
> Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma,
> d$colortype,  : 
>   unable to start device X11cairo
> In addition: Warning message:
> In function (display = "", width, height, pointsize, gamma, bg,  :
>   unable to open connection to X11 display ''
> 
> Would you give some clues what is going on?

You wrote you are using R over an SSH connection. Have you enabled
X-window support for the connection (see 'man ssh')?

HTH,
-Kimmo



More information about the R-help mailing list