Learn R Programming

conquestr (version 1.4.5)

geom_line_or_smooth: 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)

Value

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

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

Examples

Run this code
myExample <- geom_line_or_smooth()

Run the code above in your browser using DataLab