ptree(x,y)
f<-ptree("model.name",fitPiecewiseLinreg(model.name))
will assign the function to f
. Calling f(3)
will plot the merging tree with nodes hightlighted according to parameter 3, presuming that there are that many parameters in the model.
merge
.