> From: Duncan Murdoch <[EMAIL PROTECTED]>
> Date: Sun, 21 Mar 2004 06:58:03 -0500
> 
> On Sun, 21 Mar 2004 11:07:01 +0000, you [EMAIL PROTECTED] wrote:
> 
> >Does anyone know of a method for writing text to the graphics window, 
> >where there is *no* plot? Basically, I have developed a 'significance 
> >test' and I would like the output on the graphics window to say 
> >something about the input parameters and the stats of the significance test.
> 
> You need to make sure a graphics device is active and establish a
> coordinate system there.  The easiest way to do that is to make a call
> to plot() with everything turned off:
> 
>  plot(0:100,0:100,type='n',axes=FALSE,xlab="",ylab="")
> 
> You may also want to reduce the "margins" if you want your output to
> take up the full frame, e.g.
> 
>  oldmargins <- par(mar=c(0,0,0,0))
>  plot(0:100,0:100,type='n',axes=FALSE,xlab="",ylab="")
> 
An easier way to activate a graphics device and establish a coordinate
system is to call plot.new().


Try:
> plot.new()
> text(0, 0, "ABC")
> par("usr")
[1] -0.04  1.04 -0.04  1.04

Ray Brownrigg

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

Reply via email to