<div dir="ltr">Usando seu exemplo:<div><br></div><div>> barras <- barplot(dadosest,ylim=c(0,150),beside=TRUE)<br></div><div><div>> points(barras[,1],dados$y1)</div><div>> points(barras[,2],dados$y2, pch=19)</div><div>> lines(barras[,1],dados$y1)</div><div>> lines(barras[,2],dados$y2, lty=2)</div><div><br></div></div><div>HTH</div><div>--</div><div>Cesar Rabak</div><div><br></div><div>PS.: Se você quer ver as "bolinhas e as linhas" em outro gráfico do lado direito, a resposta seria outra. . .</div><div><br></div><div><div>> par(mfrow=c(1,2))</div><div>> barplot(dadosest,ylim=c(0,150),beside=TRUE)</div></div><div><div>> barplot(dadosest,ylim=c(0,150),beside=TRUE,col=0,border=NA)</div><div>> points(barras[,1],dados$y1)</div><div>> lines(barras[,1],dados$y1)</div><div>> points(barras[,2],dados$y2,pch=19)</div><div>> lines(barras[,2],dados$y2,lty=2)</div></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-31 11:13 GMT-03:00 Diogo Jerônimo via R-br <span dir="ltr"><<a href="mailto:r-br@listas.c3sl.ufpr.br" target="_blank">r-br@listas.c3sl.ufpr.br</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58514"><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58515">Prezados, bom dia!!!</span><br clear="none" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58516"></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58514"><span style="font-family:Verdana,sans-serif"><br></span></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58517"><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58549">Estou fazendo um barplot, cujos dados estão estruturados no R em forma de matriz como no exemplo abaixo:</span><br></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58517"><span style="font-family:Verdana,sans-serif"><br></span></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58519"><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58520">dados=data.frame(</span></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58521"><span id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58522">y1=c(110,120,115,130,125),</span></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58523"><span id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58524">y2=c(102,105,104,103,107))</span></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58523"><span><br></span></div><div dir="ltr" style="text-align:justify;font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58525"><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58526">dadosest=as.matrix(dados)</span><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58527"><br clear="none" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58528"></span></div><div dir="ltr" style="text-align:justify;font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58529"><span style="font-family:Verdana,sans-serif"><br></span></div><div dir="ltr" style="text-align:justify;font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58529"><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58530">barplot(</span><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58531">dadosest</span><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58532">,ylim=c(0,150)<wbr>,beside=TRUE)</span><br clear="none" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58533"></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58534"><span style="font-family:Verdana,sans-serif"><br></span></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58534"><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58535">Eu gostaria de criar um novo eixo (à direita), com os valores correspondentes a y1 e y2 plotados como "bolinhas", e se possível com uma reta unindo essas "bolinhas"...</span><br clear="none" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58536"></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58534"><span style="font-family:Verdana,sans-serif"><br></span></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;text-align:justify" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58537"><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58538">Alguém teria sugestão de como se fazer isso? Eu empreguei a função par(new=T), mas no meu teste, o novo gráfico ficou muito desproporcional.</span><br clear="none" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58539"></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif" dir="ltr" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58540"><span style="font-family:Verdana,sans-serif"><br></span></div><div style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif" dir="ltr" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58540"><span style="font-family:Verdana,sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58541">Se alguém souber e puder ajudar... agradecido desde já!!!</span></div><div></div><div id="m_-5122648025863869493yui_3_16_0_1_1504177665648_56813"> </div><div class="m_-5122648025863869493signature" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_56815"><div class="MsoNormal" id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38349" style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white"><i id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38508"><span id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38507" style="color:rgb(0,0,191);font-size:medium"><font face="Courier New, courier, monaco, monospace, sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58277">Diogo Jerônimo</font></span></i></div><div class="MsoNormal" id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38347" style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white"><i id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38430"><span id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38429" style="color:rgb(0,0,191);font-size:medium"><font face="Courier New, courier, monaco, monospace, sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_56814">Bacharel em Ciências Estatísticas - ENCE/IBGE</font></span></i></div><div class="MsoNormal" id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38310" style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white"><i id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38309"><span id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38308" style="color:rgb(0,0,191);font-size:medium"><font face="Courier New, courier, monaco, monospace, sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58276">Mestre em Metrologia - PUC-Rio/PósMQI</font></span></i></div><div class="MsoNormal" id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38326" style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white"><i id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38329"><span id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38328" style="color:rgb(0,0,191);font-size:medium"><font face="Courier New, courier, monaco, monospace, sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38700">CONRE: 8514 - SÉRIE A</font></span></i></div><div class="MsoNormal" id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38326" style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white"><i id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38314"><span id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38313" style="color:rgb(0,0,191);font-size:medium"><font face="Courier New, courier, monaco, monospace, sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38698">Cel:(21)99680-8535</font></span></i></div><div class="MsoNormal" id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38319" style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white"><i id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38318"><span id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38317" style="color:rgb(0,0,191);font-size:medium"><font face="Courier New, courier, monaco, monospace, sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38696">Email: <a href="mailto:diogojose21@yahoo.com.br" target="_blank">diogojose21@yahoo.com.br</a></font></span></i></div><div class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal;background:white" id="m_-5122648025863869493yui_3_16_0_1_1504177665648_58218"><i id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38323"><span id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38322" style="line-height:17.12px;color:rgb(0,0,191);font-size:medium"><font face="Courier New, courier, monaco, monospace, sans-serif" id="m_-5122648025863869493yui_3_16_0_1_1497025264182_38695"><a href="http://lattes.cnpq.br/8996149312896520" target="_blank">http://lattes.cnpq.br/<wbr>8996149312896520</a></font></span></i></div></div></div></div><br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">https://listas.inf.ufpr.br/<wbr>cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-<wbr>guia</a>) e forneça código mínimo reproduzível.<br></blockquote></div><br></div>