Linis Guerrero
2013-Aug-19 07:09 UTC
[R-es] Problemas con ggsave(paste('img/',plotName,'.png', sep='')
Estimados usuarios de R: Soy nuevo en R, le ruego disculpa por mi *Ignorancia*. Estoy corriendo la siguiente instruccion, ggsave(paste('img/',plotName,'.png', sep='') y resulta el error: ggsave(paste('img/',plotName,'.png', sep='') Saving 7.32 x 4.87 in image Error in grDevices::png(..., width = width, height = height, res = dpi, : unable to start png() deviceIn addition: Warning messages:1: In grDevices::png(..., width = width, height = height, res = dpi, : unable to open file 'img/StreetRobberyKde2d.png' for writing2: In grDevices::png(..., width = width, height = height, res = dpi, : opening device failed Estoy corriendo el código de aqui: r-bloggers.com/visualizing-baltimore-2-vacant-property-and-some-more-crime ing 7.32 x 4.87 in image Error in grDevices::png(..., width = width, height = height, res = dpi, : unable to start png() device In addition: Warning messages: 1: In grDevices::png(..., width = width, height = height, res dpi, : unable to open file 'img/BurglaryKde2d.png' for writing 2: In grDevices::png(..., width = width, height = height, res = dpi, : opening device failed Por favor, agradezco ayuda. PD: Tengo Windows 7, 32 bits; vesion R 3.0.1 Saludos, linis. [[alternative HTML version deleted]]
Freddy Omar López Quintero
2013-Aug-25 18:14 UTC
[R-es] Problemas con ggsave(paste('img/', plotName, '.png', sep='')
Estimado Linis, Antes que nada, acláranos: ¿has instalado correctamente todas las librerías señaladas allí?¿has adecuado las rutas expuestas en el post a las rutas de tu computador?¿Tienes los archivos que utilizaron el post para emular los resultados? Saludos. On Mon, Aug 19, 2013 at 3:09 AM, Linis Guerrero <linisguerrero28@gmail.com>wrote:> Estimados usuarios de R: > > Soy nuevo en R, le ruego disculpa por mi *Ignorancia*. > > Estoy corriendo la siguiente instruccion, > > ggsave(paste('img/',plotName,'.png', sep='') > > > y resulta el error: > > ggsave(paste('img/',plotName,'.png', sep='') > > > Saving 7.32 x 4.87 in image > > Error in grDevices::png(..., width = width, height = height, res = dpi, : > unable to start png() deviceIn addition: Warning messages:1: In > grDevices::png(..., width = width, height = height, res = dpi, : > unable to open file 'img/StreetRobberyKde2d.png' for writing2: In > grDevices::png(..., width = width, height = height, res = dpi, : > opening device failed > > > > Estoy corriendo el código de aqui: > > > r-bloggers.com/visualizing-baltimore-2-vacant-property-and-some-more-crime > > ing 7.32 x 4.87 in image Error in grDevices::png(..., width = width, height > = height, res = dpi, : unable to start png() device In addition: Warning > messages: 1: In grDevices::png(..., width = width, height = height, res > dpi, : unable to open file 'img/BurglaryKde2d.png' for writing 2: In > grDevices::png(..., width = width, height = height, res = dpi, : opening > device failed > > > Por favor, agradezco ayuda. > > > > PD: Tengo Windows 7, 32 bits; vesion R 3.0.1 > > > > Saludos, > > linis. > > [[alternative HTML version deleted]] > > > _______________________________________________ > R-help-es mailing list > R-help-es@r-project.org > stat.ethz.ch/mailman/listinfo/r-help-es > >-- «But Gwindor answered: 'The doom lies in yourself, not in your name.'» JRR Tolkien [[alternative HTML version deleted]]
Freddy Omar López Quintero
2013-Aug-26 15:13 UTC
[R-es] Problemas con ggsave(paste('img/', plotName, '.png', sep='')
Estimado Linis, Si estás bajo Windows y no has cambiado las rutas (también dentro de las funciones) es posible que no funcionen bien. Por ejemplo la sentencia paste('img/',plotName,'.png', sep='') deberías cambiarla por: paste('img\',plotName,'.png', sep='') o incluso por paste('img\\',plotName,'.png', sep='') dependiendo de la idiosincrasia de Windows. Este cambio debería corregir el error: unable to open file 'img/BurglaryKde2d.png' Saludos. 2013/8/26 Linis Guerrero <linisguerrero28@gmail.com>> Sr. Freddy. > > Todo aparentemente se hizo bién. > > Al parecer tengo problemas com los funciones ggsave y paste. No lee y > como no tengo experiencia en R, se me dificulta. > Agradezco su ayuda. > > > > > > > El 25 de agosto de 2013 13:44, Freddy Omar López Quintero< > freddy.vate01@gmail.com> escribió: > > Estimado Linis, >> >> Antes que nada, acláranos: ¿has instalado correctamente todas las >> librerías señaladas allí?¿has adecuado las rutas expuestas en el post a las >> rutas de tu computador?¿Tienes los archivos que utilizaron el post para >> emular los resultados? >> >> Saludos. >> >> >> On Mon, Aug 19, 2013 at 3:09 AM, Linis Guerrero < >> linisguerrero28@gmail.com> wrote: >> >>> Estimados usuarios de R: >>> >>> Soy nuevo en R, le ruego disculpa por mi *Ignorancia*. >>> >>> >>> Estoy corriendo la siguiente instruccion, >>> >>> ggsave(paste('img/',plotName,'.png', sep='') >>> >>> >>> y resulta el error: >>> >>> ggsave(paste('img/',plotName,'.png', sep='') >>> >>> >>> Saving 7.32 x 4.87 in image >>> >>> Error in grDevices::png(..., width = width, height = height, res = dpi, >>> : >>> unable to start png() deviceIn addition: Warning messages:1: In >>> >>> grDevices::png(..., width = width, height = height, res = dpi, : >>> unable to open file 'img/StreetRobberyKde2d.png' for writing2: In >>> >>> grDevices::png(..., width = width, height = height, res = dpi, : >>> opening device failed >>> >>> >>> >>> Estoy corriendo el código de aqui: >>> >>> >>> r-bloggers.com/visualizing-baltimore-2-vacant-property-and-some-more-crime >>> >>> ing 7.32 x 4.87 in image Error in grDevices::png(..., width = width, >>> height >>> = height, res = dpi, : unable to start png() device In addition: Warning >>> messages: 1: In grDevices::png(..., width = width, height = height, res >>> dpi, : unable to open file 'img/BurglaryKde2d.png' for writing 2: In >>> grDevices::png(..., width = width, height = height, res = dpi, : opening >>> device failed >>> >>> >>> Por favor, agradezco ayuda. >>> >>> >>> >>> PD: Tengo Windows 7, 32 bits; vesion R 3.0.1 >>> >>> >>> >>> Saludos, >>> >>> linis. >>> >>> [[alternative HTML version deleted]] >>> >>> >>> _______________________________________________ >>> R-help-es mailing list >>> R-help-es@r-project.org >>> stat.ethz.ch/mailman/listinfo/r-help-es >>> >>> >> >> >> -- >> «But Gwindor answered: 'The doom lies in yourself, not in your name.'» >> >> JRR Tolkien >> > >-- «But Gwindor answered: 'The doom lies in yourself, not in your name.'» JRR Tolkien [[alternative HTML version deleted]]