plot the contribution of a smooth term to the linear prediction
index of the smooth term within list of smooth terms
If plot_se is true, then the confidence interval for the linear prediction will be added to the plot.
If cpr (component plus residual) is true, then a scatter plot of the partial working residuals will be added to the plot.
If true, then the estimated intercept is added to the prediction and its standard errors. This avoids that the confidence interval has zero width at the imposed identification constraint, e.g. either at a reference point or at the mean.
If ax is not None, then the plot will be added to it.
If ax is None, the created figure. Otherwise, the Figure to which ax is connected.