Reputation: 325
I am using R and I would like to export this summary as a PNG file. Can anyone help me please? Thank you!
library(summrytools)
summary_data <- summarytools::descr(iris)
Upvotes: 1
Views: 1108
Reputation: 854
To export it as PNG, you can use:
library(gridExtra)
png("test.png", height = 50*nrow(summary_data), width = 200*ncol(summary_data))
grid.table(summary_data)
dev.off()
Upvotes: 4