<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><div><font size="2">Pessoal, boa noite!</font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><font size="2"><br></font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><font size="2">Seguinte, estou com um banco de dados onde tenho 8 grupos e estou fazendo um grafico semelhante a este exemplo:</font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><font size="2"><br></font></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><font
size="2">#---------------------------------------------------------------------------------------------------------</font></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; font-size: 13px;"><font size="2">require(SensoMineR)</font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><font size="2">data(decathlon)</font></div><div><font size="2">res.pca <- PCA(decathlon, quanti.sup = 11:12, quali.sup=13)</font></div><div><span style="font-size: 13px;">plot(res.pca,choix="ind",habillage=13)</span><br></div><div><font size="2">dimdesc(res.pca, axes = 1:2)</font></div><div><span style="font-size: 13px;">plotellipses(res.pca,13)</span><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style:
normal;"><span style="font-size: 13px;"><span style="font-size: 13px;">#---------------------------------------------------------------------------------------------------------</span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;"><br></span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;">Bom, como tenho 8 grupos e muitas observações, ao traçar as elipses, mal consigo vê-las, principalmente por conta de algumas cores...já fiz uma reamostragem dentro de cada grupo, para diminuir o tamanho da amostra, mas o problema ainda continua. </span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px;
font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;"><br></span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;">Gostaria de mudar as cores que a função solta no grafico, talvez isso ajude a visualizar, contudo tentei a opção:</span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;"><br></span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size:
13px;">plot(res.pca,choix="ind",habillage=13, col=c("green","blue"))<br></span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;"><br></span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;">mas não muda as cores...dando erro...</span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;">alguém sabe como mudar as cores desse gráfico????</span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif;
background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;">desde ja, muito obrigada!</span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;"><br></span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;">abraços</span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;">Simone Sartorio</span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif;
background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;"><br></span></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span style="font-size: 13px;"><span style="font-size: 13px;"><div><i><b><font size="3" face="times new roman, new york, times, serif">***---***---***---***---***---***---***---***---***---***---***---***---***</font></b></i></div><div class="yui_3_7_2_18_1365801761188_61" style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-size: 3px; font-weight: bold;"><i><b><font size="3" face="times new roman, new york, times, serif">* Simone Daniela Sartorio</font></b></i></div><div><font face="times new roman, new york, times, serif">* <span class="Apple-tab-span" style="white-space: pre;"> </span>Professora Adjunta I da
UFSCar, Centro de Ciências Agrárias, Campus Araras/SP.</font></div><div><font face="times new roman, new york, times, serif">*<span class="Apple-tab-span" style="white-space: pre;"> </span>Doutora e Mestre em Estatística e Experimentação Agronômica - ESALQ/USP;</font></div><div><font face="times new roman, new york, times, serif">* <span class="Apple-tab-span" style="white-space: pre;"> </span>Licenciada em Matemática - UNESP/Rio Claro.</font></div><div><font face="times new roman, new york, times, serif">* <span class="Apple-tab-span" style="white-space: pre;"> </span>Contatos: </font></div><div class="yui_3_7_2_18_1365801761188_71" style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;"><font face="times new roman, new york, times, serif">*<span class="Apple-tab-span" style="white-space: pre;"> </span>tel: (19)3543-2614, ramal 2664</font></div><div class="yui_3_7_2_18_1365801761188_73"
style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;"><font face="times new roman, new york, times, serif">*<span class="Apple-tab-span" style="white-space: pre;"> </span>cel: (19)8182-0586 - Tim</font></div><div class="yui_3_7_2_18_1365801761188_75" style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;"><b style="line-height: 1.22;"><i><font size="3" face="Times New Roman">***---***---***---***---***---***---***---***---***---***---***---***---***</font></i></b></div><div class="yui_3_7_2_18_1365801761188_77" style="font-family: 'Times New Roman'; background-color: transparent; font-size: 3px; font-weight: bold;"><b><font size="3" face="Times New Roman"><font color="#bf00bf" size="1"><span class="yui_3_7_2_18_1365801761188_98" style="font-family: 'times new roman';"><i></i></span></font></font><div><font size="3" face="Times New Roman"><i><span class="tab"><span
class="tab"><var id="yui-ie-cursor"></var> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span class="tab"> <span
class="tab"> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>Tenha um bom dia! </i><font face="Courier New, courier, monaco, monospace, sans-serif">;)</font></font></div></b></div></span></span></div></div> </div></body></html>