Com a legenda, fica:<br /> <br /> Nomes <- c("PentaE","D18S51","D21S11","TH01","D3S1358","FGA")<br /> NAgel <- c(0.14970140,0.06891474,0.13054984,0.26187191,0.06763797,0.08232084)<br /> NAcap <- c(0.09954859,0.05968163,0.11116655,0.07833215,0.05561891,0.08612497)<br /> Matriz <- matrix(c(NAgel,NAcap),,2)<br /> <br /> library(plotrix)<br /> Matriz<-matrix(c(NAgel,NAcap),ncol=6,by=T)<br /> barpos<-barp(Matriz,main="Gráfico de Barras",col=1:2,<br /> names.arg=c(Nomes),cex=0.8,cylindrical=TRUE,shadow=TRUE,<br /> xlab="Grupos",ylab="Resposta",legend.lab=c("NAgel","NAcap"),<br /> legend.pos=list(x=1.2,y=0.248))<br /> <em><br /> Att.<br /> André</em><br /> <br /><br />
<hr style="border-top: 1px solid #ccc;" />
Em 13/08/2012 19:52, <strong>Vitor Aguiar < vitor.aguiar@me.com ></strong> escreveu:<br />Boa tarde,
<div></div>
<div>gostaria de saber como fazer um simples gráfico de barras com o dataframe abaixo, onde as colunas 2 e 3 seriam barras consecutivas, com o nome na coluna 1 para esse grupo de 2 barras.</div>
<div></div>
<div>
<div style="margin: 0px; font-size: 14.5px; font-family: Monaco; ">Names NAgel NAcap</div>
<div style="margin: 0px; font-size: 14.5px; font-family: Monaco; ">1 PentaE 0.14970140 0.09954859</div>
<div style="margin: 0px; font-size: 14.5px; font-family: Monaco; ">2 D18S51 0.06891474 0.05968163</div>
<div style="margin: 0px; font-size: 14.5px; font-family: Monaco; ">3 D21S11 0.13054984 0.11116655</div>
<div style="margin: 0px; font-size: 14.5px; font-family: Monaco; ">4 TH01 0.26187191 0.07833215</div>
<div style="margin: 0px; font-size: 14.5px; font-family: Monaco; ">5 D3S1358 0.06763797 0.05561891</div>
<div style="margin: 0px; font-size: 14.5px; font-family: Monaco; ">6 FGA 0.08232084 0.08612497</div>
<div style="margin: 0px; font-size: 14.5px; font-family: Monaco; "></div>
<div style="margin: 0px; font-size: 14.5px; ">Muito Obrigado,</div>
<div style="margin: 0px; font-size: 14.5px; ">Vitor</div>
</div>
<br />