geom_line_or_smooth: geom_line_or_smooth

View source: R/plotGeneral.R

geom_line_or_smoothR Documentation

geom_line_or_smooth

Description

helper functions for ggplot - conditionally creates call to ggplot2::geom_smooth depending on the option linetype in the call to conquestr::plotCCC()

Usage

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

Value

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

Examples

myExample <- geom_line_or_smooth()

conquestr documentation built on June 8, 2025, 11:02 a.m.