[R] Barplot label

David Winsemius dwinsemius at comcast.net
Sat Dec 6 19:04:03 CET 2008


  .... from the par help page:

( nr.prof <-  
c(prof.pilots=16,lawyers=11,farmers=10,salesmen=9,physicians=9,  
mechanics=6,policemen=6,managers=6,engineers=5,teachers=4,  
housewives=3,students=3,armed.forces=1))
barplot(rbind(nr.prof)
par(las = 3)
barplot(rbind(nr.prof))
par(las = 0)# reset to default

-- 
David Winsemius
On Dec 6, 2008, at 8:15 AM, ram basnet wrote:

> Dear all,
> I am trying to make barplot from matrix with "beside=FALSE". I have  
> 165 labels in my bar plot. When i plot the label horizontally below  
> the barplot, then all labels are not appear in the plot due to lack  
> of space. I used the following function:
>
> barplot(t(bar), main="Barplot based on LCMS", ylab="RF membership  
> Probability",
>    space=0,names.arg=NULL,density=NULL,angle=0,xpd=FALSE,
>    
> col 
> = 
> c 
> ("skyblue 
> ","red","yellow","purple"),cex.axis=0.1.0,cex.main=1.0,las=1,cex=0.7)
>
> So, i want to put labels vertically just below my barplot.
> I think it is minor problem. It will be great if somebody help me.
> Thanks is advances.
>
> Ram Kumar Basnet
> M Sc Student
> Wageningen
>
>
>
> 	[[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.



More information about the R-help mailing list