I am trying to get R to do some very basic plotting and such in UNIX, but am getting a weirdo error relating to X11, when as far as I can tell I'm not even needing X11.
I have a matrix name d and want to save an image of a heatmap of this matrix without ever actually displaying the image (since I don't want to use X11). Here is my code:
png(file="my_image.png")
heatmap(d)
dev.off()
The problem is I am getting the following error:
Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize, :
unable to start device PNG
In addition: Warning message:
In png(file = "interative_hen.png") :
unable to open connection to X11 display ''
I don't know this is happening, since I don't see how R is needing X11, and even if it does, X11 is installed and working properly for every application I tested it with.