[R] About graphics

Silvano silvano at uel.br
Fri Feb 5 16:48:25 CET 2010


Hi,

I'm building a graph (barplot) in which the X axis label 
disappears.
I tried to use the option mgp of par() and I could not get 
the desired result.

Note that want the axis labels horizontally.

caes = c(37,20,19,16,75,103)
names(caes) = c("Pinscher", "Pastor \n Alemão", "Poodle", 
"Rottweiller", "SRD", "Outros")
caess = sort(caes, decreasing=F)
par(mar=c(3, 5.7, 1, 1), mgp=c(4.5, .5, 0), las=1)
barplot(caess, cex.axis=1, cex.names=1, ylab="Raças dos 
Cães",
        xlab="Frequências", bty='l', col="LightYellow", 
horiz=T, xlim=c(0,120))
abline(v=0)

Suggestions?

--------------------------------------
Silvano Cesar da Costa
Departamento de Estatística
Universidade Estadual de Londrina
Fone: 3371-4346



More information about the R-help mailing list