If you want to save a plot, in R programming, then you need to perform the following steps:
First, open a file, using png() or bmp() or pdf() format.
Plot your model
Close the file using dev.off()
The following is an example code that can be implemented for saving the plot to a png file:
fit <- lm(some ~ model)
png(filename="your/file/location/name.png")
plot(fit)
dev.off()