<div dir="ltr">library(plotrix)<div>gap.barplot(dbhm, gap=c(40, 120))<br></div><div><br></div><div>?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">Em 13 de março de 2014 09:13, Rodolfo Souza <span dir="ltr"><<a href="mailto:rodolfomssouza@gmail.com" target="_blank">rodolfomssouza@gmail.com</a>></span> escreveu:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:13px;font-family:arial,sans-serif">Olá pessoal,</span><br style="font-size:13px;font-family:arial,sans-serif">
<br style="font-size:13px;font-family:arial,sans-serif">
<span style="font-size:13px;font-family:arial,sans-serif">Alguém sabe como quebrar o eixo/escala em gráfico de barras agrupadas no R? Eu preciso fazer um gráfico e tem um grupo bem maior que os demais, e nesse caso passa ter um problema de escala. Segue o CMR</span><br style="font-size:13px;font-family:arial,sans-serif">
<br style="font-size:13px;font-family:arial,sans-serif"><span style="font-size:13px;font-family:arial,sans-serif">cp1=c(6.81, 3.78, 3.16, 0.66, 4.27, 0.75, 5.64, 2.02, 0.99, 31.00)</span><br style="font-size:13px;font-family:arial,sans-serif">
<span style="font-size:13px;font-family:arial,sans-serif">cp2=c(4.57, 0, 0, 0, 3.81, 0, 6.6, 1.27, 0, 140)</span><br style="font-size:13px;font-family:arial,sans-serif"><span style="font-size:13px;font-family:arial,sans-serif">cp3=c(0.46, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 35.00)</span><br style="font-size:13px;font-family:arial,sans-serif">
<span style="font-size:13px;font-family:arial,sans-serif">grups=c(1,2,3,4,5,6,7,8,9,10)</span><br style="font-size:13px;font-family:arial,sans-serif"><br style="font-size:13px;font-family:arial,sans-serif">
<span style="font-size:13px;font-family:arial,sans-serif">dbh=data.frame(grups,cp1,cp2,</span><span style="font-size:13px;font-family:arial,sans-serif">cp3)</span><br style="font-size:13px;font-family:arial,sans-serif">
<span style="font-size:13px;font-family:arial,sans-serif">dbhm=t(as.matrix(dbh[,-1]))</span><br style="font-size:13px;font-family:arial,sans-serif"><span style="font-size:13px;font-family:arial,sans-serif">colnames(dbhm)=dbh$grups</span><br style="font-size:13px;font-family:arial,sans-serif">
<span style="font-size:13px;font-family:arial,sans-serif">barplot(dbhm, beside=T, las=1)</span><br style="font-size:13px;font-family:arial,sans-serif"><br style="font-size:13px;font-family:arial,sans-serif">
<br style="font-size:13px;font-family:arial,sans-serif"><span style="font-size:13px;font-family:arial,sans-serif">O último grupo tem valores bem maior que os demais, por isso que fica ruim ver as variações de cada componente nos outros grupos. Eu queria fazer semelhante a esse (</span><a href="http://uspace.shef.ac.uk/servlet/JiveServlet/showImage/2-12478-3980/gap_plot.png" style="font-family:arial,sans-serif;font-size:13px" target="_blank">http://uspace.shef.ac.uk/servlet/JiveServlet/showImage/2-12478-3980/gap_plot.png</a><span style="font-size:13px;font-family:arial,sans-serif">), mas não sei como quando utiliza a função "beside=T".</span><br style="font-size:13px;font-family:arial,sans-serif">
<br style="font-size:13px;font-family:arial,sans-serif"><span style="font-size:13px;font-family:arial,sans-serif">Grato pela atenção.</span><br style="font-size:13px;font-family:arial,sans-serif">
<br style="font-size:13px;font-family:arial,sans-serif"><span style="font-size:13px;font-family:arial,sans-serif">Rodolfo Marcondes Silva Souza</span><br clear="all"><div><br></div>
</div>
<br>_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br></blockquote></div><br></div>