diagnostic = TRUE does not work
Closed this issue · 1 comments
aelaamrani commented
Hello,
I am trying to get the diagnostic plot of a model. I have tried the example that is in the source code
library(changepoint)
# Generate cpt.range object
testdata <- changepoint::ftse100$V2
obj.cpt.range <- cpt.var(testdata, method = "PELT",
penalty = "CROPS", pen.value = c(5, 500))
# For code coverage
plot(obj.cpt.range, diagnostic = TRUE)
plot(obj.cpt.range, diagnostic = TRUE, type = "h")
However, I am getting the following error and no plot is shown.
In doTryCatch(return(expr), name, parentenv, handler) :
"diagnostic" is not a graphical parameter
Could you please help?
Thanks!
rkillick commented
Apologies, I didn't get an email to say this issue has been opened!
What version of changepoint are you using? The provided code works for version 2.2.3 from CRAN.