<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hola,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Puedes hacerlo de varias formas:</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><ul><li>Lo cambias al vuelo en el propio plot.design.</li><ul><li>plot.design( PESO ~<b> as.factor(TRATAMIENTO)</b>, data=Prueba, ylab="PESO", col.lab="blue", col.axis="red", cex.axis=0.4)</li></ul></ul><ul><li>O, primeramente lo transformas en tu datos y luego ya lo incluyes en plot.design()</li><ul><li><b>Prueba$TRATAMIENTO <- factor(Prueba$TRATAMIENTO)</b></li><li>plot.design( PESO ~ TRATAMIENTO, data=Prueba, ylab="PESO", col.lab="blue", col.axis="red", cex.axis=0.4)</li></ul></ul></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue, 10 dic 2020 a las 10:44, Juan Bautista (<jbautista@neiker.eus>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div style="overflow-wrap: break-word;" lang="ES">
<div class="gmail-m_-5460609913704564904WordSection1">
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(68,84,106)">Muchas gracias Carlos.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(68,84,106)">Efectivamente lo he comprobado …y tienes razón.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(68,84,106)">La columna “TRATAMIENTO” no me la lee como “Factor” si no como “Character”.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(68,84,106)">Estoy intentando cambiar para que me aparezca como “Factor” Dos formas que he probado no me han funcionado. Alguna sugerencia?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(68,84,106)">Gracias Otra vez<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(68,84,106)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(68,84,106)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(68,84,106)">Un saludo.<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">Juan Bautista Relloso Barrio<u></u><u></u></span></b></p>
<p class="MsoNormal" style="margin-right:42.55pt;margin-left:0cm;margin-bottom:0.0001pt">
<span style="font-size:10pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">Coordinador de Equipos e Infraestructuras | Técnico de Cultivos del Departamento de Producción Vegetal
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:42.55pt"><span style="font-size:10pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">Talde eta Azpiegitura Koordinatzailea | Laborantza teknikaria Landare Ekoizpen Departamentua
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-top:4.2pt;line-height:150%"><span style="color:rgb(68,84,106)"><a href="mailto:jbautista@neiker.eus" target="_blank"><span style="font-family:"Trebuchet MS",sans-serif">jbautista@neiker.eus
</span></a></span><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">| M. 688 62 98 14
</span><span style="font-size:10pt;line-height:150%;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-top:4.2pt;line-height:200%"><span style="color:rgb(68,84,106)"><a href="http://www.neiker.eus/" target="_blank"><b><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">www.neiker.eus</span></b></a></span><b><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">     
         </span></b><a href="https://www.linkedin.com/company/neiker/" target="_blank"><b><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91);text-decoration:none"><img style="width: 0.136in; height: 0.16in;" id="gmail-m_-5460609913704564904Imagen_x0020_7" src="cid:1764c0bbc13afa3b81" width="13" height="15" border="0"></span></b></a><b><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)"> </span></b><a href="https://twitter.com/neiker_BRTA" target="_blank"><b><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91);text-decoration:none"><img style="width: 0.2in; height: 0.16in;" id="gmail-m_-5460609913704564904Imagen_x0020_6" src="cid:1764c0bbc14bdbb392" width="19" height="15" border="0"></span></b></a><a href="https://www.facebook.com/neikerBRTA" target="_blank"><b><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91);text-decoration:none"><img style="width: 0.176in; height: 0.16in;" id="gmail-m_-5460609913704564904Imagen_x0020_5" src="cid:1764c0bbc141f3c04f3" width="17" height="15" border="0"></span></b></a><b><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)"> </span></b><a href="https://www.youtube.com/user/neikertec" target="_blank"><b><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91);text-decoration:none"><img style="width: 0.208in; height: 0.16in;" id="gmail-m_-5460609913704564904Imagen_x0020_4" src="cid:1764c0bbc14201d7d04" width="20" height="15" border="0"></span></b></a><b><span style="font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)"><u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)"><img style="width: 3.128in; height: 0.448in;" id="gmail-m_-5460609913704564904Imagen_x0020_3" src="cid:1764c0bbc1520fef515" width="300" height="43" border="0">        <img style="width: 1.024in; height: 0.56in;" id="gmail-m_-5460609913704564904Imagen_x0020_2" src="cid:1764c0bbc1521df08a6" alt="ej_ekonomia_garapen_lateral" width="98" height="54" border="0">         </span></b><span style="color:rgb(68,84,106)"> <img style="width: 0.416in; height: 0.6in;" id="gmail-m_-5460609913704564904Imagen_x0020_1" src="cid:1764c0bbc1522c080b7" alt="https://www.emakunde.euskadi.eus/contenidos/informacion/violencia_puntolila/eu_def/adjuntos/punto.lila.jpg" width="40" height="58" border="0"></span><b><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)"><u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)"><u></u> <u></u></span></b></p>
<p class="MsoNormal"><span style="color:rgb(68,84,106)"><a href="https://neiker.eus/eu/pribatutasun-politika/" target="_blank"><span style="font-size:6pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">PRIBATUTASUN POLITIKA</span></a></span><span style="font-size:6pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">
 | </span><span style="color:rgb(68,84,106)"><a href="https://neiker.eus/es/politica-privacidad/" target="_blank"><span style="font-size:6pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">POLÍTICA DE PRIVACIDAD</span></a></span><span style="font-size:6pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">
 | </span><span style="color:rgb(68,84,106)"><a href="https://neiker.eus/en/privacy-policy/" target="_blank"><span style="font-size:6pt;font-family:"Trebuchet MS",sans-serif;color:rgb(85,85,91)">LEGAL NOTICE</span></a></span><u><span style="font-size:6pt;color:rgb(85,85,91)"><u></u><u></u></span></u></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Trebuchet MS",sans-serif;color:rgb(68,84,106)"><u></u> <u></u></span></p>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b>De:</b> Carlos Ortega <<a href="mailto:cof@qualityexcellence.es" target="_blank">cof@qualityexcellence.es</a>> <br>
<b>Enviado el:</b> jueves, 10 de diciembre de 2020 10:17<br>
<b>Para:</b> Juan Bautista <jbautista@neiker.eus><br>
<b>CC:</b> Proyecto R-UCA <<a href="mailto:r-uca@uca.es" target="_blank">r-uca@uca.es</a>>; <a href="mailto:r-help-es@r-project.org" target="_blank">r-help-es@r-project.org</a><br>
<b>Asunto:</b> Re: [R-es] En R.4.03 no corre el comando plot.design<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Verdana",sans-serif">Hola,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Verdana",sans-serif">Desde la 4.0 R al importar un dataset, ya no convierte los "strings" a "factors" y ese es el error que tienes. Sospecho que la columna "TRATAMIENTO" no es factor y aparece
 el error.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Verdana",sans-serif">Comprueba la clase de las columnas en la 3.63 antes de entrar en el plot y lo mismo con la 4.03.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Verdana",sans-serif">Gracias,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Verdana",sans-serif">Carlos Ortega<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Verdana",sans-serif"><a href="http://www.qualityexcellence.es" target="_blank">www.qualityexcellence.es</a><u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">El jue, 10 dic 2020 a las 10:02, Juan Bautista (<<a href="mailto:jbautista@neiker.eus" target="_blank">jbautista@neiker.eus</a>>) escribió:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Hola a todos.<br>
Acabo de instalar la versión de R 4.03 y hay un comando que no corre. Me dá un mensaje de error que no se descifrar<br>
Este es el comando:<br>
plot.design( PESO ~ TRATAMIENTO, data=Prueba, ylab="PESO", col.lab="blue", col.axis="red", cex.axis=0.4)<br>
Y el mensaje de error que me da es este:<br>
Error in .plot.des(xf, ydata[, j], fun = fun, ylab = ylab[j], ylim = ylim,  : <br>
  all columns/components of 'x' must be factors<br>
<br>
Lo que me fastidia es que el mismo comando sin cambiar nada en R 3.63 corre perfectamente sin ningún problema<br>
¿Puede que me falte algún paquete o librería de cargar?<br>
<br>
Un saludo.<br>
Juan Bautista Relloso Barrio<br>
Coordinador de Equipos e Infraestructuras | Técnico de Cultivos del Departamento de Producción Vegetal
<br>
Talde eta Azpiegitura Koordinatzailea | Laborantza teknikaria Landare Ekoizpen Departamentua
<br>
<a href="mailto:jbautista@neiker.eus" target="_blank">jbautista@neiker.eus</a> | M. 688 62 98 14 <br>
<a href="http://www.neiker.eus" target="_blank">www.neiker.eus</a>            <br>
<br>
<br>
PRIBATUTASUN POLITIKA | POLÍTICA DE PRIVACIDAD | LEGAL NOTICE<br>
<br>
-----Mensaje original-----<br>
De: R-help-es <<a href="mailto:r-help-es-bounces@r-project.org" target="_blank">r-help-es-bounces@r-project.org</a>> En nombre de Proyecto R-UCA<br>
Enviado el: viernes, 27 de noviembre de 2020 10:08<br>
Para: <a href="mailto:r-help-es@r-project.org" target="_blank">r-help-es@r-project.org</a><br>
Asunto: Re: [R-es] Cargar data frame en app shiny<br>
<br>
Hola:<br>
<br>
¿Has comprobado los permisos de las carpetas padre?<br>
<br>
Ten en cuenta que shiny tal vez se esté ejecutando por algún usuario de sistema con privilegios restringidos como www-data o similar.<br>
<br>
Un saludo.<br>
<br>
_______________________________________________<br>
R-help-es mailing list<br>
<a href="mailto:R-help-es@r-project.org" target="_blank">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>
_______________________________________________<br>
R-help-es mailing list<br>
<a href="mailto:R-help-es@r-project.org" target="_blank">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><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif">Saludos,<br>
Carlos Ortega<br>
<a href="http://www.qualityexcellence.es" target="_blank">www.qualityexcellence.es</a></span><u></u><u></u></p>
</div>
</div>
</div>

</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><span style="font-family:verdana,sans-serif">Saludos,</span><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">Carlos Ortega</span><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif"><a href="http://www.qualityexcellence.es" target="_blank">www.qualityexcellence.es</a></span></div>