stat_covafill: Add a covafill smoother to an (x,y) plot

Description Usage Arguments Value Author(s) See Also

View source: R/statcovafill.R

Description

As an extention to the ggplot2 package, the function adds a covafill fit to an (x,y) plot. The fit is predicted to points on the interval range(x).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
stat_covafill(
  mapping = NULL,
  data = NULL,
  geom = "smooth",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  n = 50,
  bandwith = NULL,
  polyDegree = 3L,
  level = 0.95,
  se = TRUE,
  ...
)

Arguments

mapping

Set of mappings created by 'aes' from the ggplot2 package. The same as ggplot2::stat_smooth.

data

The data to be displayed in this layer. The same as ggplot2::stat_smooth.

geom

The same as ggplot2::stat_smooth.

position

Position adjustments. The same as ggplot2::stat_smooth.

na.rm

Not used

show.legend

Should this legend be displayed? The same as ggplot2::stat_smooth.

inherit.aes

The same as ggplot2::stat_smooth.

n

Number of points to do prediction on.

bandwith

Bandwith used in covafill. Uses suggestBandwith by default.

polyDegree

Polynomial degree to use in covafill.

level

Level of confidence interval to use.

se

Should confidence intervals be displayed?

...

Other arguments passed to layer.

Value

A ggplot2 layer.

Author(s)

Christoffer Moesgaard Albertsen

See Also

stat_smooth


covafillr documentation built on Dec. 1, 2019, 1:17 a.m.