When using RStudio, plots may be examined in the "Plots" pane or the built-in Viewer.
However, I noticed that the quality of these previews is worse when compared to a saved plot. Obviously it is possible to export or save the image, with no lack of methods (pdf(), png(), ggsave(), etc).
Using iris as an example, the following screenshot produces the following plot
library(tidyverse)
p.iris = iris %>%
ggplot(aes(x = Sepal.Length, y = Sepal.Width)) +
geom_point() +
geom_smooth(method = "lm", se = FALSE)
p.iris
Compared to the saved version of the same plot, with a high DPI.
ggsave(plot = p.iris, filename = "Example.png", dpi = 320)
While the difference is subtle, e.g. the line from geom_smooth is clearer.

If inspecting the plot preview, you can see that the plot is saved to a .png
<img id="img" width="100%" height="100%" style="display: inline;"
src="http://127.0.0.1:35473/graphics/c3c6aa95-f458-477e-af54-f443f93ad673.png">
Suppose I don't mind additional resources or time being used to render a better quality preview - which settings would I adjust?

