geom_line_or_smooth | R Documentation |
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 |
thisLinetype |
a string, either "bins" or "regression" set in the call to |
a list with a function call to ggplot2::geom_line
.
myExample <- geom_line_or_smooth()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.