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).
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,
...
)
Set of mappings created by 'aes' from the ggplot2
package. The same as ggplot2::stat_smooth
.
The data to be displayed in this layer. The same as ggplot2::stat_smooth
.
The same as ggplot2::stat_smooth
.
Position adjustments. The same as ggplot2::stat_smooth
.
Not used
Should this legend be displayed? The same as ggplot2::stat_smooth
.
The same as ggplot2::stat_smooth
.
Number of points to do prediction on.
Bandwith used in covafill. Uses suggestBandwith
by default.
Polynomial degree to use in covafill.
Level of confidence interval to use.
Should confidence intervals be displayed?
Other arguments passed to layer
.
A ggplot2
layer
.