Learn R Programming

psre (version 0.4)

linear_args: 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,
  ...
)

Value

A list with arguments that can be used as input to `ggplot2::geom_smooth()`.

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.