7
votes
$\begingroup$

I have the following R code for creating barplot:

# ... here I read cvs file

mx <- rbind(results$"AVG.P10.")   
colnames(mx) <- results$"RUN"    
rownames(mx) <- "AVG P"    
postscript(file="avg_p_result.ps")    
barplot(mx, beside=T,  col=c("grey"), names.arg= results$"RUN", 
        cex.axis = 1.5, cex.lab=1.5)

I have tried cex.lab=1.5 but it does not work at all.

$\endgroup$
1
  • 2
    $\begingroup$ I can understand that reading online help might seem a tiresome activity at first sight (still, it's very educative and often help to capitalize knowledge on a particular software), but could you at least accept answer(s) you find helpful for your ongoing R activities? $\endgroup$ – chl Oct 21 '10 at 21:09
10
votes
$\begingroup$

According to ?barplot, you need to use cex.names=1.5.

barplot(mx, beside=TRUE, col=c("grey"), names.arg=results$"RUN", 
        cex.axis=1.5, cex.names=1.5)
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.