是否有一个功能类似ggsave
为ggplots
从在RStudio观众节省了高清晰度的图片?
Not sure if this is what you are looking for, but you might directly use the available graphic devices and write your plot into a file, eg, as follows (check ?device
for other file formats):
# specify the device / file format (and start device)
png(file = "myplot.png")
plot(1:2, 1:2, type = "l")
#turn off the device
dev.off()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.