Exporting graph on own local device

The graph plotted can be then exported to our own device by clicking the “Export” icon above the image in case you are using the R studio editor. The following image shows the export icon and the options available on opening it :

If you click on “Save as Image” the following popup opens :

If you click on “Save as PDF” the following popup opens and after selecting the directory click on save. It will be saved at the selected location:



Saving Graphs as Files in R

In this article, we are going to learn how to save graphs to files in the R programming language.

Similar Reads

R Saving Graphs as Files

Graphs are descriptive R objects which facilitate the visual representation of data in R. The data points become more understandable and readable when expressed in the form of plots. The plots can also be saved within the local directory. They can then be accessed without opening the R editor....

Saving graph as a pdf object

The graph can be saved as a pdf object in the local working space using pdf() function. The directory followed by the .pdf extension name is supplied as an input argument to the pdf() function....

Saving graph as a PNG image

...

Saving graph as a .JPEG image

The graph can be saved as a png image object in the local working space. The directory followed by the .png extension name with the path of location supplied as an input argument to the png() function. The graph is plotted using the barplot() method, which takes vector of values as input. The processing of the current cycle on the device can then be closed by dev.off() method....

Exporting graph on own local device

...