Hi,
i am newbie into ggplot and i thow that i have to learn a lot about this
package.
I am doing this function to draw an graphic:
library(ggplot2)
posx <- theme_text(angle=45,hjust=1,face='bold',size=12)
posy <- theme_text(angle=0,hjust=1,face='bold',size=12)
y1 <- c(1,4,6,1,8,10,6,1,5,4)
x <-
qplot(x=factor(paste('nomes',1:10),labels=paste('nomes',1:10)),
y= y1 ,
geom='bar',margins=F,
stat="identity",xlab='',ylab='Y LABEL')
x + opts(axis.text.x=posx,axis.text.y=posy) + geom_bar(fill=c(rgb
(000,100,000,maxColorValue=255),rep(rgb(110,139,061,maxColorValue=255),
9)))
Now, I want to know how can i change the size of the bar. I want to draw it
thinner than it appears into the R Graphics Console.
Another doubt is how can I use another format into the y label, called in this
graphic 'Y LABEL'
Regards,
Leandro Marino
Atenciosamente,
Leandro Lins Marino
Centro de Avalia??o
Funda??o CESGRANRIO
Rua Santa Alexandrina, 1011 - 2? andar
Rio de Janeiro, RJ - CEP: 20261-903
R (21) 2103-9600 R.:236
( (21) 8777-7907
( leandro em cesgranrio.org.br
"Aquele que suporta o peso da sociedade
? precisamente aquele que obt?m
as menores vantagens". (SMITH, Adam)
? Antes de imprimir pense em sua responsabilidade e compromisso com o MEIO
AMBIENTE
Esta mensagem, incluindo seus anexos, pode conter informacoes privilegiadas e/ou
de carater confidencial, nao podendo ser retransmitida sem autorizacao do
remetente. Se voce nao e o destinatario ou pessoa autorizada a recebe-la,
informamos que o seu uso, divulgacao, copia ou arquivamento sao proibidos.
Portanto, se voc? recebeu esta mensagem por engano, por favor, nos informe
respondendo imediatamente a este e-mail e em seguida apague-a.