Daniel Brewer wrote:
> Thanks for the replies, but I still cannot get what I want.  I do not
> want the label inside the plot area, but in the top left of the paper, I
> suppose in the margins.  When I try to use text to do this, it does not
> seem to plot it outside the plot area.  I have also tried to use mtext,
> but that does not really cut it, as I cannot get the label in the
> correct position.  Ideally, it would be best if I could use legend but
> have it outside the plot area.
> 
> Any ideas?
> 
Hi Dan,

Try this:

plot(1:5)
par(xpd=TRUE)
text(0.5,5.5,"Outside")
par(xpd=FALSE)

Jim

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to