loess_args: Make Arguments for LOESS Smooth

View source: R/effective_functions.r

loess_argsR Documentation

Make Arguments for LOESS Smooth

Description

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

Usage

loess_args(
  method = "loess",
  formula = NULL,
  se = FALSE,
  na.rm = TRUE,
  orientation = NA,
  show.legend = NA,
  inherit.aes = TRUE,
  span = 0.75,
  color = "black",
  linetype = 2,
  ...
)

Arguments

method

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

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.

span

The span of the smoother.

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.