stat_covafill {covafillr} | R Documentation |
Add a covafill smoother to an (x,y) plot
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
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 |
data |
The data to be displayed in this layer. The same as |
geom |
The same as |
position |
Position adjustments. The same as |
na.rm |
Not used |
show.legend |
Should this legend be displayed? The same as |
inherit.aes |
The same as |
n |
Number of points to do prediction on. |
bandwith |
Bandwith used in covafill. Uses |
polyDegree |
Polynomial degree to use in covafill. |
level |
Level of confidence interval to use. |
se |
Should confidence intervals be displayed? |
... |
Other arguments passed to |
Value
A ggplot2
layer
.
Author(s)
Christoffer Moesgaard Albertsen