stat_depth_weighted(): applies depth (thickness) weighted functionsR/stat_depth_weighted.R
stat_depth_weighted.RdA ggplot2-style layer using the StatDepthWeighted statistic
stat_depth_weighted(
data = NULL,
mapping = NULL,
geom = "point",
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
FUN = stats::weighted.mean,
from = 0,
to = 200,
...
)A SoilProfileCollection
Aesthetic mapping constructed via ggplot2::aes()
Default: "point"
Default: "identity"
Default: FALSE
Default: NA
Default: TRUE
A function. First argument is values, second argument is weights. Should accept na.rm argument. Default: weighted.mean()
Top depth of weighted function interval. Default: 0.
Bottom depth of weighted function interval. Default: 200.
additional arguments passed as parameters to ggplot2::layer()
A ggplot2::layer() (a combination of data, Stat and geom with a potential position adjustment)