Pmetrics icon indicating copy to clipboard operation
Pmetrics copied to clipboard

Error during plotting of VPC

Open mhovd opened this issue 8 months ago • 0 comments

Discussed in https://github.com/LAPKB/Pmetrics/discussions/259

Originally posted by BoburaII May 19, 2025 Hello, I’m attempting to plot VPCs using the PM_result$valid$plot() function, and I keep getting this error:

valid1 <- res1$validate(limits = NA) res1$valid$plot() Error in bind_cols(): ! Can't recycle ..1 (size 9) to match ..2 (size 18). Run rlang::last_trace() to see where the error occurred.

Could this be a data format issue? I’ve got two outputs in the dataset, with corresponding output equations in the model file. I’m able to plot a scatter VPC by extracting the simdata using valid1$simdata$plot(obs = res$op). However, I need to generate a confidence interval VPC plot similar to the ones created using the example model/data files and I was hoping to accomplish this by using the PM_result$valid$plot() function.

Any help with this would be greatly appreciated.

Thanks! Bob

mhovd avatar May 20 '25 07:05 mhovd