[R] plotting only text as a table

Marc Schwartz mschwartz at medanalytics.com
Wed Jul 10 20:13:57 CEST 2002


> -----Original Message-----
> From: Stephan Holl [mailto:sholl at gmx.net]
> Sent: Wednesday, July 10, 2002 11:50 AM
> To: MSchwartz at medanalytics.com
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] plotting only text as a table
> 
> Dear Marc,
> 
> <snip>
> Thank you for your detailed information about this topic.
> Now I see clearer and mostly understand how to plot text!
> 
> cheers
>   steph

Stephan, 

You are very welcome.

I just noted Thomas' reply and wish to point out using his initial
approach, you can modify the single plot() function call in my example
code to:

plot.new()
plot.window(xlim=c(0,4),ylim=c(0,6))

This uses "lower level" calls to the plot function methods and is
cleaner in the respect that it sets up the blank plot window with the
coordinate system as desired, without all of the additional arguments
that I required to use plot() and not actually draw anything in the
window.

If you were to look at the source code for plot() [actually
plot.default()], you would see that it calls the two functions above.
So while calling plot() only requires one line of code, it is actually
cleaner and more efficient to use the two lines that Thomas had in his
example instead.

Marc


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list