Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. ## Como guardar una grafica a un jpg o png desde R
  2.  
  3. # Pintar histograma en jpg
  4.  
  5. jpeg("ruta/nombrefichero.jpg") # Abro el archivo
  6. hist(variable)
  7. dev.off() # Cierro el archivo que contiene el histograma
  8.  
  9.  
  10. # idem con png
  11. png("ruta/nombrefichero.png") # Abro el archivo
  12. plot(variable)
  13. dev.off() # Cierro el archivo que contiene el histograma
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement