<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1442950129472_3422"><span></span></div><div id="yui_3_16_0_1_1442950129472_3422">Mira esto sobre los Bar Plots</div><div id="yui_3_16_0_1_1442950129472_3422"><span><br></span></div><div id="yui_3_16_0_1_1442950129472_3422" dir="ltr"><span id="yui_3_16_0_1_1442950129472_3457"><a href="http://www.statmethods.net/graphs/bar.html" id="yui_3_16_0_1_1442950129472_3454">Quick-R: Bar Plots</a><br></span></div><div style="width:450px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';margin-top:5px; margin-bottom: 5px; background-color: #ffffff;" contenteditable="false" id="enhancrCard_0" class="link-enhancr-attachment link-enhancr-element richcompose-card"><table class="link-enhancr-element" cellspacing="0" cellpadding="0" border="0" style="width:450px; height:170px; position: relative; display: block;" id="yui_3_16_0_1_1442950129472_3482"><tbody id="yui_3_16_0_1_1442950129472_3481"><tr class="link-enhancr-element"><td class="link-enhancr-element" colspan="8" style="height: 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px;"> </div></td></tr><tr class="link-enhancr-element" id="yui_3_16_0_1_1442950129472_3480"><td rowspan="5" class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;"><div class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;"> </div></td><td class="link-enhancr-element link-enhancr-image-wrap" rowspan="5" style="vertical-align: middle; width: 168px; height: 168px; background-color: #000000;border-collapse: collapse;" id="yui_3_16_0_1_1442950129472_3479"><div class="link-enhancr-element" style="width: 168px;" align="center" id="yui_3_16_0_1_1442950129472_3478"><a href="http://www.statmethods.net/graphs/bar.html" class="link-enhancr-card-urlWrapper link-enhancr-element" style="text-decoration: none !important;text-decoration:none; color: #000000 !important;" id="yui_3_16_0_1_1442950129472_3477"><img alt="image" src="http://www.statmethods.net/graphs/images/smbarplot1.jpg" class="link-enhancr-thumbnail-image link-enhancr-element yahoo-ignore-inline-image" width="168" height="168" style="display: block; margin: auto;" id="yui_3_16_0_1_1442950129472_3476" data-id="ee9289c9-6c00-8de8-8766-38de48a41e1d"></a></div></td><td rowspan="5" class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;"> </div></td><td rowspan="5" class="link-enhancr-element" style="width: 14px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;" id="yui_3_16_0_1_1442950129472_3581"><div class="link-enhancr-element" style="width: 14px; background-color: #ffffff; font-size: 14pt;" id="yui_3_16_0_1_1442950129472_3582"> </div></td><td colspan="2" class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="link-enhancr-element" style="height: 6px; background-color: #ffffff; font-size: 6pt;"> </div></td><td rowspan="5" class="link-enhancr-element" style="width: 20px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;" id="yui_3_16_0_1_1442950129472_3589"><div class="link-enhancr-element" style="width: 20px; background-color: #ffffff; font-size: 20pt;"> </div></td><td class="link-enhancr-element" rowspan="5" width="1" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;" id="yui_3_16_0_1_1442950129472_3680"><div class="link-enhancr-element" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;"> </div></td></tr><tr id="yui_3_16_0_1_1442950129472_3679"><td class="link-enhancr-element" colspan="2" style="width: 100%; vertical-align: middle; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';" id="yui_3_16_0_1_1442950129472_3678"><div class="link-enhancr-text-part link-enhancr-element" style="line-height:16.5px; background-color: #ffffff; height: 135px; width: 245px;" id="yui_3_16_0_1_1442950129472_3677"><div class="link-enhancr-element" style="word-wrap: break-word; word-break: break-all;" id="yui_3_16_0_1_1442950129472_3676"><span class="link-enhancr-element icon  icon-shrink link-enhancr-toggle"></span><span class="link-enhancr-element icon icon-close link-enhancr-delete"></span><a href="http://www.statmethods.net/graphs/bar.html" class="link-enhancr-card-urlWrapper link-enhancr-element" style="text-decoration: none !important;text-decoration:none; color: #000000 !important; line-height: 100%; font-size: 18px; display: block;" id="yui_3_16_0_1_1442950129472_3973"><span class="link-enhancr-element link-enhancr-card-title" style="margin: 0; font-weight: normal;margin-bottom: 3px; font-size: 18px; line-height: 21px; max-height: 43px; color: #000000; overflow: hidden !important; display: inline-block;" id="yui_3_16_0_1_1442950129472_4061">Quick-R: Bar Plots</span></a><div style="font-size: 13px; line-height: 20px; color: #999999; max-height: 81px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';overflow: hidden;" class="link-enhancr-card-description link-enhancr-element" id="yui_3_16_0_1_1442950129472_3675">Bar Plots Create barplots with the barplot(height) function, where height is  a vector or matrix. If height is a vector, the values determine the heights of the bar...</div></div></div></td></tr><tr id="yui_3_16_0_1_1442950129472_4881"><td colspan="2" class="link-enhancr-element" style="height: 4px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;" id="yui_3_16_0_1_1442950129472_4880"><div class="link-enhancr-element" style="height: 4px; background-color: #ffffff; font-size: 4pt;" id="yui_3_16_0_1_1442950129472_4879"></div></td></tr><tr id="yui_3_16_0_1_1442950129472_4136"><td class="link-enhancr-element" style="vertical-align: middle; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';" id="yui_3_16_0_1_1442950129472_4138"><div class="link-enhancr-element" style="font-size: 0pt;" id="yui_3_16_0_1_1442950129472_4137"><a href="http://www.statmethods.net/graphs/bar.html" class="link-enhancr-card-url link-enhancr-element" style="color: black; text-decoration: none !important;text-decoration:none;cursor:pointer !important;" target="_blank" id="yui_3_16_0_1_1442950129472_4884"><span class="link-enhancr-element link-enhancr-view-on" style="display: inline-block; line-height: 11px; max-width: 145px; min-width: 85px; overflow: hidden; max-height: 13px; word-break: break-all;" id="yui_3_16_0_1_1442950129472_3473"><span class="link-enhancr-element link-enhancr-mobile-no-resize" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust:none; text-size-adjust:none;" id="yui_3_16_0_1_1442950129472_4883">Ver en <span style="font-weight: bold" class="link-enhancr-view-on-domain" id="yui_3_16_0_1_1442950129472_4882">www.statmethods.net</span></span></span></a></div></td><td class="link-enhancr-element" style="vertical-align: middle; width: 100px; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';" id="yui_3_16_0_1_1442950129472_4135"><div class="link-enhancr-element link-enhancr-preview-wrapper" style="max-width: 100px; min-width: 80px; overflow: hidden; text-align: right; line-height: 11px; max-height: 13px; font-size: 0pt;" id="yui_3_16_0_1_1442950129472_4134"><span class="link-enhancr-element link-enhancr-preview-by link-enhancr-mobile-no-resize" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust:none; text-size-adjust:none;">Vista previa por Yahoo</span></div></td></tr><tr id="yui_3_16_0_1_1442950129472_3972"><td colspan="2" class="link-enhancr-element" style="height: 9px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;" id="yui_3_16_0_1_1442950129472_3971"><div class="link-enhancr-element" style="height: 9px; background-color: #ffffff; font-size: 9pt;" id="yui_3_16_0_1_1442950129472_3970"></div></td></tr><tr class="link-enhancr-element" id="yui_3_16_0_1_1442950129472_3588"><td class="link-enhancr-element" colspan="8" style="height: 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;" id="yui_3_16_0_1_1442950129472_3587"><div class="link-enhancr-element" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px" id="yui_3_16_0_1_1442950129472_3586"> </div></td></tr></tbody></table></div><div id="yui_3_16_0_1_1442950129472_3422"><br></div><div id="yui_3_16_0_1_1442950129472_3422"><br></div><div id="yui_3_16_0_1_1442950129472_3422"><br></div><div id="yui_3_16_0_1_1442950129472_3422" dir="ltr">Si lo que quieres es dividir por intervalos puedes hacer algo así, a ver si te sirve. </div><div id="yui_3_16_0_1_1442950129472_3422" dir="ltr">Sea z1 tu matriz:</div><div id="yui_3_16_0_1_1442950129472_3422"><br></div><div id="yui_3_16_0_1_1442950129472_3422" class="">z1$rango <- (cut(z1$tamaño, breaks =3, dig.lab=2)) #Añadimos una variable rango con 3 divisiones del rango de tamaños. Te pone los intervalos por defecto pero tambien puedes tu ponerlos tu.</div><div id="yui_3_16_0_1_1442950129472_3422" class=""><br></div><div id="yui_3_16_0_1_1442950129472_3422" class="" dir="ltr">table (z1$estaciones,z1$rango) #una tablita con el numero de estaciones por rango y tamaño</div><div id="yui_3_16_0_1_1442950129472_3422" class="">#Grafica de barras</div><div id="yui_3_16_0_1_1442950129472_3422" class="">barplot(table(z1$estaciones,z1$rango))# pero la mejoramos un poco</div><div id="yui_3_16_0_1_1442950129472_3422" class=""><br id="yui_3_16_0_1_1442950129472_3625" class=""></div><div id="yui_3_16_0_1_1442950129472_3422" class="">#creamos una leyenda</div><div id="yui_3_16_0_1_1442950129472_3422" class="" dir="ltr">leyenda<-c( "Gualeguycito", "(Itapebí]","(Cañada]")</div><div id="yui_3_16_0_1_1442950129472_3422" class=""><br id="yui_3_16_0_1_1442950129472_3630" class=""></div><div id="yui_3_16_0_1_1442950129472_3422" class="">barplot (table (z1$tamaño,z1$rango),</div><div id="yui_3_16_0_1_1442950129472_3422" class="" dir="ltr">main= "Promedio de tamaños...", ylab="Tamaño",</div><div id="yui_3_16_0_1_1442950129472_3422" class=""><br></div><div id="yui_3_16_0_1_1442950129472_3422" dir="ltr" class="">beside = T, legend.text=leyenda,args.legend=list(x="topleft"))</div><div id="yui_3_16_0_1_1442950129472_3422" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1442950129472_3422" dir="ltr" class="">Saludos</div>  <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> El Martes 22 de septiembre de 2015 21:20, Susana deus alvarez <susanadeus.deusalvarez@gmail.com> escribió:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv2792318223"><div dir="ltr">Hola, escribo porque tengo una gran duda como gráficas tan fáciles en Excel son tan difíciles en R?<div>No consigo hacer una gráfica en R de estas características. Osea como puedo dividir por sitios por tamaños. En una planilla enorme tengo la primera columna son las estaciones (pero solo quiero las tres ultimas) y después muchos parámetros, en las columnas 46, 53 y 60 los promedios ponderados. Y no puedo hacerlo en R incapaz. He intentado crear unos excel más pequeño solo con eso pero no hay manera. Si alguien me puede ayudar un poco...</div><div><br></div><div>Gracias</div><div><br></div><div><img src="cid:S027NKVRavsk4yu9G7vd" alt="Imágenes integradas 1" width="456" height="275"><br></div></div></div><br>_______________________________________________<br>R-help-es mailing list<br><a ymailto="mailto:R-help-es@r-project.org" href="mailto:R-help-es@r-project.org">R-help-es@r-project.org</a><br><a href="https://stat.ethz.ch/mailman/listinfo/r-help-es" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-help-es</a><br><br></div>  </div> </div>  </div></div></body></html>