> library(ggplot2)
> data(diamonds)
> temp <- qplot(cut, color, data=diamonds)
> ggsave(temp, file = "test.png")
Saving 7" x 7" image
Error in grDevices::png(..., width = width, height = height, res = dpi,  :
  X11 is not available

-- 
View this message in context: 
http://n4.nabble.com/ggsave-in-Linux-tp1567860p1567986.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to