Skip navigation links

R Plotting Enabling X11 Support on the Cluster

R is compiled with X11 support on the HPCC cluster servers. To run an R script that saves plots using the following functions: jpeg(), png(), tiff(), or bmp(), add the header line #SBATCH --x11 in your SLURM job script. Otherwise, you'll get the error message: "unable to open connection to X11 display." If plots will be saved as pdf files, then this header line is not needed.

For more information about using R on the HPCC, please see https://wiki.hpcc.msu.edu/x/roFaAQ

Nanye Long
Research Consultant
Institute for Cyber-Enabled Research