`plot` of Changepoint object is not working
Closed this issue · 3 comments
auzaheta commented
I'm working with version 2.2.2 from CRAN and version 2.3.1 from GitHub. For both, the plot functionality is not working.
# change in mean
y=c(rnorm(100,0,1),rnorm(100,5,1))
ansmean=cpt.mean(y)
plot(ansmean,cpt.col='blue')
Error in as.double(y) :
cannot coerce type 'S4' to vector of type 'double'
Thanks for a great job with the package.
rkillick commented
auzaheta commented
My fault, I checked just loading changepoint
and it works. However, when I load a package that I'm developing it creates the conflict. Thanks a lot for the hint and I'm so sorry for the false alarm.
rkillick commented
No problem, as you may have guessed, I've had the same issue before hence the suggestion to check!