[R] Displaying Grahics to the X Window when calling R from command line

From: Pologruto, Thomas <thomas.pologruto_at_credit-suisse.com>
Date: Tue, 15 Apr 2008 18:23:31 -0400


I am running an R script from the command line by calling:

> R --vanilla < test.R

My terminal is part of the Xwin (Xterm) and there is a plot(1:10) command in the test.R script.

This will not produce a grahic though. When I start R by calling R then plotting from the R command in the same xterm, I do get a graphic display.

How do I create a xwin plot by calling R from the command line?

Any help is most appreciated. I have preprocessed the data in perl and then feed it into my R script and want to see a plot on the screen.


Please access the attached hyperlink for an important electronic communications disclaimer:


        [[alternative HTML version deleted]]

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. Received on Tue 15 Apr 2008 - 22:28:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Apr 2008 - 09:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive