I am using OCPU to plot some charts from the SixSigma package. It works fine in RStudio, it works perfect using the Public OCPU server, but when I try to use the same function in a Linux box I've setup installing OCPU 1.4 using apt-get as instructed, the layout gets funny.
Strange thing is that if I execute the SixSigma function straight up, it plots correctly, but if I create a function that executes the package function, then the plot doesn't work.
testPlot <- function(){
require(SixSigma)
ss.study.ca(ss.data.ca$Volume, rnorm(42, 753, 3),
LSL = 740, USL = 760, T = 750, alpha = 0.05,
f.sub = "Winery Project")
}
The above function is being executed in the two servers (public and mine) but getting different results.
Here is a fiddle with the test scenario, two plots, same code, but different result, both are executing the same function.