geom_line_or_smooth function

geom_line_or_smooth

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)

Arguments

  • 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()

Returns

a list with a function call to ggplot2::geom_line.

Examples

myExample <- geom_line_or_smooth()
  • Maintainer: Dan Cloney
  • License: GPL-3
  • Last published: 2025-02-19