Re: [R] drawing outside a plot region

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon 06 Feb 2006 - 18:32:26 EST

On Sun, 5 Feb 2006, ivo welch wrote:

> Dear R wizards: First, thank you for all the responses to my earlier
> queries. Will keep me busy tomorrow morning. Can I add one graphics
> question to my ever changing set of bothering questions, please?
>
> plot( c(0,1), c(0,1) );
> crop.to.plot.off(); # what I want; does not exist
> text( -0.3, 0.1, " this is 0.1 "); arrows(-0.1,0.1,0,0.1);
> crop.to.plot.on(); # what I want; does not exist
>
> of course, the text and most of the arrow is cropped. for most of my
> graph, I like the crop, but here I would like to turn it off.

See par(xpd) which does exactly this (and also allows cropping to the figure region).

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@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
Received on Mon Feb 06 18:45:07 2006

This archive was generated by hypermail 2.1.8 : Tue 07 Feb 2006 - 00:53:19 EST