When I run the chunk below in RStudio, I get a very blurry plot. Removing fig.width=6.5, fig.height=6 gives me back a nice, crisp plot. I've tried AGG, Cairo and Cairo PNG backends, and also switched on antialiasing.
How can I change the figure size in RStudio without making the plot blurry? [NB. I know I can save a crisp PNG to a file, but I'm looking to have a readable plot in the IDE.]
```{r fig.width=6.5, fig.height=6}
ggplot(data=data.frame()) +
scale_x_continuous(name = "rMZ", limits = c(-0.05, 1.15), breaks = seq(0,1,0.25)) +
scale_y_continuous(name = "rDZ", limits = c(-0.05, 1.05), breaks = seq(0,1,0.25)) +
coord_fixed() +
# clockwise and anticlockwise arrows
annotate(geom = "curve",
x = 1.03, y = 0.1, xend = 0.65, yend = 0.88,
arrow = arrow(length = unit(0.05, "npc"), ends="both", type="closed"),
linewidth = 1.8,
curvature = 0.18
) +
annotate("text", x = 0.61, y = 0.93, angle = 43, label="MORE SHARED\nENVIRONMENT", size = 3, fontface = "bold") +
annotate("text", x = 1.03, y = 0.03, angle = 7, label="MORE GENETIC\nINTERACTION", size = 3, fontface = "bold")
```


{r fig.width=6.5, fig.height=6, dpi=300}fig.retinadoesn't seem to work.