Entering edit mode
16 months ago
AmirhosseinQ1
•
0
Hello!
I have been trying to use Vlnplot(Data[[1]], features = "nFeature_RNA")
to draw a violin plot, but I get the following error:
Error in RStudioGD() : Shadow graphics device error: r error 4 (Error in grDevices:::png("C:/Users/A0367~1.GHO/AppData/Local/Temp/Rtmp4ciOvX/9288a30261f54326afc6b948b6e47626.png", : Graphics API version mismatch )
I tried updating packages like ragg and Cairo but the error still remained.
this is my sessioninfo()
sessionInfo()
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
See this stackoverflow post for a potential solution. In short, go to options and set the graphics backend to AGG.