r - RStudio Exporting Issues -
i have never needed export rstudio specific dimensions. producing graphs publication strict width of 2400 pixels. major problem have not used singular traditional plot have done. have customised graph various plots , segments. evaluate plot have been making it, have been looking @ zoomed in plot in rstudio.
so asking whether there way export zoomed in plot on rstudio png specified width (height, flexible with).
i have tried
dev.copy2pdf(device = "pdf", file = "test.pdf")
which didn't work had hoped.
if using ggplot, can use ggsave:
qplot(rating, data=movies, geom="histogram") ggsave("test.pdf", height=8, width=8)
the default dpi 300 300 dpi x 8 inches = 2400.
this should same in base plotting system:
pdf("boxplot.pdf", height=8, width=8) boxplot(mtcars$mpg) dev.off()
Comments
Post a Comment