Re: [R] Aligning labels to bars in barplot

2013-01-17 Thread Jim Lemon
On 01/17/2013 04:51 AM, David Arnold wrote: Nice, worked very well. But because of the realignment, I now need to lower by xlab a bit. Any suggestions? Hi David, This should give you an idea of how to do it: par(mar=c(6,4,4,2)) plot(1:10,xlab="") mtext("Index",side=1,line=4) Jim

Re: [R] Aligning labels to bars in barplot

2013-01-16 Thread David Arnold
Nice, worked very well. But because of the realignment, I now need to lower by xlab a bit. Any suggestions? David. -- View this message in context: http://r.789695.n4.nabble.com/Aligning-labels-to-bars-in-barplot-tp4655701p4655749.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Aligning labels to bars in barplot

2013-01-16 Thread Jim Lemon
On 01/16/2013 07:48 PM, David Arnold wrote: Hi, Consider: x=c(2,4,5,10,13,73) names(x)=c("American\nIndian", "No\ncategory\nlisted", "Hispanic", "African-\nAmerican", "Asian", "White") barplot(x,main="Undergraduate Enrollment by Race",

[R] Aligning labels to bars in barplot

2013-01-16 Thread David Arnold
Hi, Consider: x=c(2,4,5,10,13,73) names(x)=c("American\nIndian", "No\ncategory\nlisted", "Hispanic", "African-\nAmerican", "Asian", "White") barplot(x,main="Undergraduate Enrollment by Race", xlab="Race", ylab="Percent",