[R] color on barplot
Romain Francois
francoisromain at free.fr
Thu Jun 9 11:08:49 CEST 2005
Le 09.06.2005 10:48, Navarre Sabine a écrit :
>Hello,
>
>On my barplot, I have on the axis y, the names of the rows of my matrix r_mat!
>is it possible to change the color of these names on my barplot?
>
>barplot2(t(r_mat),beside=TRUE,horiz=TRUE,plot.grid=TRUE,xlab="R",font.lab=4,las=2,xlim=c(0,1))
>
>thanks,
>
>Sabine
>
>
>
Try
par(col.axis="blue")
And please give *reproductible* examples, here the package gplots must
be loaded and we don't have access to r_mat.
Romain
--
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
~~~~~~ Romain FRANCOIS - http://addictedtor.free.fr ~~~~~~
~~~~ Etudiant ISUP - CS3 - Industrie et Services ~~~~
~~ http://www.isup.cicrp.jussieu.fr/ ~~
~~~~ Stagiaire INRIA Futurs - Equipe SELECT ~~~~
~~~~~~ http://www.inria.fr/recherche/equipes/select.fr.html ~~~~~~
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
More information about the R-help
mailing list