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