[R] how to make R plot under Linux

MacQueen, Don macqueen1 at llnl.gov
Thu May 15 02:31:31 CEST 2014


Yes, install R so that X11 is enabled, then do

x11()
hist( c(1:10) )

and you should see your histogram.

-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062





On 5/14/14 1:26 AM, "Owen" <815551145 at qq.com> wrote:

>Vojtěch Zeisek <Vojtech.Zeisek <at> opensuse.org> writes:
>
>> 
>> On Linux You can use Rkward http://rkward.sourceforge.net/ - very nice
>>and 
>> good graphical user interface for R.
>> 
>> Dne Pá 19. února 2010 19:39:53 xinwei <at> stat.psu.edu napsal(a):
>> > Hi, I am using R in Linux environment. How can i make plot in Linux
>>just
>> > like in windows?
>> > 
>> > thanks
>> > 
>> > ______________________________________________
>> > R-help <at> r-project.org mailing list
>> > https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guide
>> >  http://www.R-project.org/posting-guide.html and provide commented,
>> >  minimal, self-contained, reproducible code.
>
>Hi,
>I have connected to the Linux server via ssh -X using Putty and can
>successfully show "xclock" window in Xming.
>However, when i used R and run  command "hist(c(1:10))", i cannot get the
>figure in the Xming window (nothing happened in the Xming window).
>The output of capabilities() is as following:
>> capabilities()
>    jpeg      png     tiff    tcltk      X11     aqua http/ftp  sockets
>    TRUE     TRUE    FALSE    FALSE    FALSE    FALSE     TRUE     TRUE
>  libxml     fifo   cledit    iconv      NLS  profmem    cairo
>    TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE
>
>What should i do to see the popup plot of R? should i need to ask the
>Administrator to enable X11?
>Thanks!
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list