Tip for plotting mgcViz object with cowplot
tmeeha opened this issue · 1 comments
tmeeha commented
Seems like the cowplot library has a hard time converting an mgcViz plot object to a grob for plotting because the object contains multiple classes, with a ggplot part and a data part. Therefore, when assigning an mgcViz object for plotting with cowplot, it is worth subsetting it first, as in: ggplot_object_for_cowplot <- name_of_mgcviz_object$ggObj.
clauswilke commented
Wrong location for this info. Consider asking a question on Stackoverflow and answering it yourself if nobody else does first.