[R] controlling the labels width of a barplot

Henrique Dallazuanna wwwhsd at gmail.com
Fri Apr 1 15:39:53 CEST 2011


Try the cex.names argument in barplot function.

On Fri, Apr 1, 2011 at 10:34 AM, Samuel Le <Samuel.Le at srlglobal.com> wrote:
> Dear all,
>
>
>
> I am trying the barplot command but some of the labels are disappearing as there is not enough place on the graph to put them all.
>
> Here is an example of code that doesn't show all the labels:
>
>
>
> barplot(sort(runif(9,0,0.2),decreasing=TRUE),xlim=c(0,20),width=2,names.arg=c("first name","second name","third name","fourth name","fifth name","sixth name","seventh name","eigth name","nineth name"))
>
>
>
> Does someone know a way to control the size of the font in the barplot function, or to give them an inclination angle?
>
>
>
> Many thanks,
>
>
>
> Samuel
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list