[R] text plots?

Greg Snow Greg.Snow at intermountainmail.org
Fri May 12 18:37:09 CEST 2006


There are some very basic interface functions to gnuplot in the
TeachingDemos package that may make option 2 below a little quicker.  Or
even better you could expand them to work better.

The following works on a single windows machine (don't have linux or a
remote machine to test with):

library(TeachingDemos) 
x <- runif(100)
y <- rnorm(100)

gp.open()
gp.send('set terminal dumb')
gp.plot(x,y)

# switch to gnuplot window to look at plot

gp.close()


Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
 

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Robert Citek
Sent: Friday, May 12, 2006 9:35 AM
To: r-help at stat.math.ethz.ch
Subject: Re: [R] text plots?


On May 12, 2006, at 9:57 AM, Robert Citek wrote:
> Is there a way to do text plots in R?

 From the responses so far, the short answer appears to be, no.

That appears to leave two options for viewing plots on a remote machine:

1) use X11 forwarding (requires an X11 server and that X11 forwarding be
enabled), although the plots won't be in text.

2) output the data to a file and use another program to plot the data as
text, e.g. MacAnova or gnuplot.

Is that a fair summary?

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS for Windows,
Linux, *BSD, and MacOS X with BitTorrent

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html




More information about the R-help mailing list