Please note that we need to call the function dev.off() after all the plotting, to save the file and return control to the screen. To save a plot as jpeg image we would perform the following steps. We will use the temperature column of built-in dataset airquality for the remainder of this section as example. They have a fixed resolution and are pixelated when zoomed enough.įunctions that help us save plots in this format are jpeg(), png(), bmp() and tiff(). Most of the image we come across like jpeg or png are bitmap image. It is important to know that plots can be saved as bitmap image (raster) which are fixed size or as vector image which are easily resizable. We can save these plots as a file on disk with the help of built-in functions. All the graphs ( bar plot, pie chart, histogram, etc.) we plot in R programming are displayed on the screen by default.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |