[R] legend as a subtitle

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri May 20 14:17:37 CEST 2005

Ravi.Vishnu at outokumpu.com wrote:

> Very little space is available in one of my plots for the legend. I would 
> like to lift it out of the main plot area and present it in the subtitle 
> area. Would appreciate any help that I can get.

Look at the following code and read the corresponding help pages:

  plot(1:10, xlab="")
  ## clipping to device region rather than plot region:
  legend(mean(par("usr")[1:2]), 0,
    legend="nonsense", xjust=0.5)

Uwe Ligges

> Ravi Vishnu
> This message is meant for the addressee only and may contain 
> confidential and legally privileged information. Any unauthorised 
> review, use, copying, storage, disclosure or distribution of this e-
> mail and any attachments is strictly prohibited. If you are not the 
> named recipient or have otherwise received this communication in 
> error, please destroy this message from your system and kindly notify 
> the sender by e-mail. Thank you for your co-operation.
> 	[[alternative HTML version deleted]]
> ______________________________________________
> 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

More information about the R-help mailing list