Suppose I have a data set of this form.
I would like to make one for X1 and one for X2 by connecting LCL and UCL for each model. The expected outcome should look like this figure
The lower point is the LCL and the upper point is the UCL of each model.
Any help is appreciated.
here is data using dput() function
> dput(mydata)
structure(list(x1m1 = c(0.5, 1), x1m2 = c(0.2, 1.5), x1m3 = c(0.5,
1.25), x2m1 = c(0.24, 0.98), x2m2 = c(0.1, 1.4), x2m3 = c(1,
2)), class = "data.frame", row.names = c("LCL", "UCL"))



dput()? Your input data has multiple column levels (X,model,lcl,values), which is impossible to represent in a single standard dataframe (to my knowledge). Did you already parsed the data?