R

Asked • 06/06/19

How to save a plot as image on the disk?

I plot a simple linear regression using R.I would like to save that image as PNG or JPEG, is it possible to do it automatically? (via code)There are two different questions: First, I am already looking at the plot on my monitor and I would like to save it as is. Second, I have not yet generated the plot, but I would like to directly save it to disk when I execute my plotting code.

1 Expert Answer

By:

Benjamin B. answered • 06/21/19

Tutor
4.9 (35)

Ecologist with 4 years of R and research experience

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.