linear_args: Make Arguments for Linear Smooth

View source: R/effective_functions.r

linear_argsR Documentation

Make Arguments for Linear Smooth

Description

Makes arguments that serve as input to 'ggplot2::geom_smooth()'.

Usage

linear_args(
  method = "lm",
  formula = NULL,
  se = FALSE,
  na.rm = TRUE,
  orientation = NA,
  show.legend = NA,
  inherit.aes = TRUE,
  color = "black",
  linetype = 1,
  ...
)

Arguments

method

Method used for the smooth, should be "lm".

formula

Alternative formula argument

se

Should standard error envelopes be plotted.

na.rm

Should data be listwise deleted before calculating smooth.

orientation

Orientation of the level

show.legend

Should the legend be shown, included by default if aesthetics are mapped.

inherit.aes

Should aesthetics from previous calls be inherited by the function.

color

Color of the line.

linetype

Line type of the line.

...

Other arguments to be passed down.


davidaarmstrong/epsr documentation built on Aug. 28, 2024, 6:33 a.m.