[R] barplot legend size
mschwartz at medanalytics.com
Fri Mar 21 15:59:35 CET 2003
>From: r-help-bounces at stat.math.ethz.ch
>[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Ott Toomet
>Sent: Friday, March 21, 2003 8:44 AM
>To: r-help at stat.math.ethz.ch
>Subject: [R] barplot legend size
>are there any way to change the size of legend in barplot? I
>have tried various versions of cex, both as par(cex.*= ) and
>barplot(..., cex.*= ). So long without success.
When you say the size of the legend I presume that you mean the text
within the legend given that you are trying to use par("cex").
Instead of creating the legend within the barplot() call (ie.
barplot(...., legend = ....) ), remove the 'legend' argument and call
legend() after the barplot call with your legend specifications.
See ?legend, which provides additional formatting flexibility,
including position, text size and spacing options among others.
More information about the R-help