geom_rlm | R Documentation |
A wrapper for ggplot2::geom_smooth()
that sets method
to MASS::rlm()
and formula
to
y ~ x
.
geom_rlm(
mapping = NULL,
data = NULL,
position = "identity",
...,
method = MASS::rlm,
formula = y ~ x,
se = TRUE,
na.rm = FALSE,
orientation = NA,
show.legend = NA,
inherit.aes = TRUE
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
position |
A position adjustment to use on the data for this layer. This
can be used in various ways, including to prevent overplotting and
improving the display. The
|
... |
Other arguments passed on to
|
method |
Smoothing method (function) to use, accepts either
For If you have fewer than 1,000 observations but want to use the same |
formula |
Formula to use in smoothing function, eg. |
se |
Display confidence interval around smooth? ( |
na.rm |
If |
orientation |
The orientation of the layer. The default ( |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
library(ggplot2)
ggplot(mpg, aes(displ, hwy)) +
geom_point() +
geom_rlm()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.