Open kamaulindhardt opened 2 years ago
may this is a bit late answer, but you can save it as .png
# prepare to save plot
png(file = paste0("./figures_ms/my_plot.png"),
height = 64, width = 64, units = "in", res = 100)
# generate plot
pl_donut <- PieDonut(df, aes(status, study.batch), labelposition = 4,
labelpositionThreshold = 0.1, pieAlpha = 0.8, donutAlpha = 1,
showRatioThreshold = 0.001, pieLabelSize = 28, donutLabelSize = 26,
explode = c(1,2), r0 = 0.3, start = 4*pi/2, showPieName = F, family = "Arial",
explodeDonut = F, ratioByGroup = F, title = NULL, titlesize = 17); dev.off()
How do I save or export the Pie-Donut plot made with webr in R? I want to save it as a regular png or something.
I have tried with the ggsave() function, but no luck.
Any idea?