How to generate higher quality jpg plots on R

I have tried generating higher quality of data visualization plots from RStats. I tried increasing frame dimensions but it's still max at about ~350kb. How do I generate higher quality images from RStats?

Topic ggplot2 visualization dataset r

Category Data Science


I think if you save the plot as SVG (Scalable Vector Graphics) you can scale the image to any size. See this answer for an example.

Second, if you want to print larger, you might need to tweak the DPI (Dots per inch), as done here.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.