[R] [FORGED] change text size on a graphics

Jim Lemon drjimlemon at gmail.com
Tue Jul 21 09:45:45 CEST 2015


Hi Carol,
If you are using the "barlabels" function in the plotrix package, just
add the usual "cex" argument to the call. Using the first example in
the help page:

heights<-c(14,20,9,31,17)
barpos<-barplot(heights,main="A redundant bar plot")
barlabels(barpos,heights+1,prop=1,cex=1.5)

Jim


On Tue, Jul 21, 2015 at 7:23 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
> On 21/07/15 08:24, carol white via R-help wrote:
>>
>> Hi,How is it possible to increase the size of a histogram labels
>> (displayed on the top of the bars)? I thought that if I use cex > 1,
>> it will increase all text size on a plot (axis labels, axis
>> annotation, title of the graphics and histogram labels) which I want
>> but it doesn't.
>
>
> ***What*** labels "displayed on the top of the bars"???  I don't see any
> such labels when I plot a histogram.
>
> Reproducible example?
>
> And please don't post in HTML.
>
> cheers,
>
> Rolf Turner
>
> --
> Technical Editor ANZJS
> Department of Statistics
> University of Auckland
> Phone: +64-9-373-7599 ext. 88276
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list