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. possible? regards, /iaw
Check xpd= in ?par On 2/5/06, ivo welch <ivowel at gmail.com> 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. > > possible? > > regards, > > /iaw > > ______________________________________________ > 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 >
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 at 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