gamFit: fitted gam model as produced by mgcv::gam()
smooth.cov: (character) name of smooth term to be plotted
groupCovs: (character) name of group variable to plot by, if NULL (default) then there are no groups in plot
orderedAsFactor: if TRUE then the model is refitted with ordered variables as factors.
rawOrFitted: If FALSE (default) then only smooth terms are plotted; if rawOrFitted = "raw" then raw values are plotted against smooth; if rawOrFitted = "fitted" then fitted values are plotted against smooth
plotCI: if TRUE (default) upper and lower confidence intervals are added at 2 standard errors above and below the mean
Returns
Returns a ggplot object that can be visualized using the print() function