[R] large fonts on plots

Chuck Cleland ccleland at optonline.net
Wed Feb 11 14:34:51 CET 2004


Piet van Remortel wrote:
> I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in 
> labels and titles etc.
> 
> I seem to be unable to figure out how to do it.    The problem is that 
> the titles of the plots are simply unreadable when I insert them into my 
> LaTeX text, since they are relatively small compared to the entire plot.

Does this help?

  par(mar=c(10,10,10,10), cex.axis=2, cex.lab=2, cex.main=4)
  plot(runif(20))
  title("Main Title")

see ?par

Chuck Cleland

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894




More information about the R-help mailing list