<div dir="ltr"><a href="http://bfy.tw/Ahi3">http://bfy.tw/Ahi3</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-16 14:49 GMT-03:00 Nilson Guiotoku 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 dir="ltr"><div class="m_8937216433426499310gmail-m_-3235572206156926915gmail-adM" style="font-size:12.8px"><div class="m_8937216433426499310gmail-m_-3235572206156926915gmail-im"><p class="MsoNormal" style="text-align:justify"><font color="#000000">Bom dia!</font></p><p class="MsoNormal" style="text-align:justify"><font color="#000000"><br></font></p><p class="MsoNormal" style="text-align:justify"><font color="#000000"><font color="#000000"><a name="m_8937216433426499310_m_-3235572206156926915_m_2749618159501159311_m_-5906965741223363026_OLE_LINK2" style="color:rgb(34,34,34)"></a></font><a name="m_8937216433426499310_m_-3235572206156926915_m_2749618159501159311_m_-5906965741223363026_OLE_LINK1" style="color:rgb(34,34,34)"><font color="#000000">Eu preciso construir o gráfico da densidade acumulada de uma variável continua (domínio dos Reais) que não tem um modelo identificado. Usei o gráfico de pareto construído por tabelas de frequência, porém, no eixo x, ele coloca as frequência em ordem decrescente. Eu gostaria de construir esse mesmo gráfico, todavia, em que no eixo x ficasse as classes das tabelas na sequencia crescente (Ex: (-17.1,32.9] (32.9,82.9] (82.9,133] (133,183] (183,233] (233,283] (283,333] ), não usando a sequencia decrescente da frequência como no pareto. Alguma ideia de como fazer isso?</font></a></font></p><table class="m_8937216433426499310gmail-m_-3235572206156926915gmail-m_2749618159501159311m_-5906965741223363026gmail-MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none"><tbody><tr><td width="576" valign="top" style="width:432.2pt;border:1pt solid windowtext;padding:0in 5.4pt"><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">> # Grafico de pareto</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">> MT <- Global$Z</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">> head(MT)</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">[1] 127.45555 23.10762 36.16764 88.45139 142.60974 151.68347</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> </font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">> intervalo <- cut(MT, breaks= seq(min(MT), max(MT), 50 ))</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> </font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">> x = table(intervalo)</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">> print(x)</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">intervalo</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"><a name="m_8937216433426499310_m_-3235572206156926915_m_2749618159501159311_m_-5906965741223363026_OLE_LINK5" style="color:rgb(34,34,34)"></a><a name="m_8937216433426499310_m_-3235572206156926915_m_2749618159501159311_m_-5906965741223363026_OLE_LINK4" style="color:rgb(34,34,34)"></a><a name="m_8937216433426499310_m_-3235572206156926915_m_2749618159501159311_m_-5906965741223363026_OLE_LINK3" style="color:rgb(34,34,34)">(-17.1,32.9] (32.9,82.9] (82.9,133] (133,183] (183,233] (233,283] (283,333]</a></font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> 5 6 9 7 4 5 6</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> </font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">> require(qcc)</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">> pareto.chart(x,ylab = "Frequencia", main = "classes do lucro MT",</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">+ col=rainbow(length(x)))</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> </font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">Pareto chart analysis for x</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> Frequency Cum.Freq. Percentage Cum.Percent.</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> (82.9,133] 9 9 21.42857 21.42857</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> (133,183] 7 16 16.66667 38.09524</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> (32.9,82.9] 6 22 14.28571 52.38095</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> (283,333] 6 28 14.28571 66.66667</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> (-17.1,32.9] 5 33 11.90476 78.57143</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> (233,283] 5 38 11.90476 90.47619</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> (183,233] 4 42 9.52381 100.00000</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> </font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> </font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000"> </font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">Ver Figura 1 do pareto em anexo.</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;text-align:justify;line-height:normal"><font color="#000000">No eixo x (aparece as classes fora de ordem), mas na ordem decrescente da frequência. Gostaria que as classes ficassem na ordem no eixo x ((-17.1,32.9] (32.9,82.9] (82.9,133] (133,183] (183,233] (233,283] (283,333] )</font></p></td></tr></tbody></table><p class="MsoNormal" style="text-align:justify"><font color="#000000"> </font></p><p class="MsoNormal" style="text-align:justify"><font color="#000000">O ideal é que apareça na ordem crescente no eixo x, como na Figura em anexo (Figura 2).</font></p><p class="MsoNormal" style="text-align:justify"><font color="#000000"><br></font></p><p class="MsoNormal" style="text-align:justify"><font color="#000000"><br></font></p></div></div><p class="MsoNormal" style="font-size:12.8px;text-align:justify"><font color="#000000">Nilson Silva.</font></p></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>