change mgcv::plot.gam to library(mgcv);plot.gam