geom_line_or_smooth
helper functions for ggplot - conditionally creates call to ggplot2::geom_smooth
depending on the option linetype in the call to conquestr::plotCCC()
geom_line_or_smooth(thisData, thisLinetype)
thisData
: the data frame being worked on in the call to conquestr::plotCCC()
thisLinetype
: a string, either "bins" or "regression" set in the call to conquestr::plotCCC()
a list with a function call to ggplot2::geom_line
.
myExample <- geom_line_or_smooth()