Hi Kevin, thanks for the reply. Your suggestion regarding the rendering engine fixed the problem. For some reason I can't change the option from 32 to 16bit; those options appear to be inaccessible to me, so I couldn't try that fix. However, from reading the linked thread it seems like the problem may have something to do with integrated graphics cards?
Unfortunately, I am faced with another minor but annoying issue. After changing the rendering engine, when I load up RStudio, it doesn't maximise and clicking the icon in the toolbar does not open the program either. I have to right click the preview and click maximise to open it (see screenshot). When I do that, everything is loaded in RStudio and appears to work fine though. I've tried rebooting to no avail.
Finally, here's a bit more info about my system. If you need any other details, let me know:
Laptop: XPS 13 9350
Procesor: Intel i5-6200U CPI
RAM: 8 GB
Graphics: Intel HD Graphics 520 (integrated)
Resolution: 3200 x 1800 (but I tried 1920 x 1080 and had same problem).
OS Version: Windows 10 Pro
R Version: 3.5.1
RStudio Version: 1.2.911
It might be noteworthy that I also have a second monitor hooked up, the Dell U2412M, but I had the original problem when I unplugged that monitor.