gg.sline | R Documentation |
a wrapper around geom_smooth to fit dot plot with lm line
gg.sline(
x,
y,
group = "x",
colour = NULL,
smethod = "lm",
dens_type = c("point", "hex"),
facet1 = NULL,
facet2 = NULL,
transpose = FALSE,
facet_scales = "fixed",
line = TRUE,
formula = y ~ x,
print = FALSE,
hex_par = list(bins = 50),
wes = NULL,
cex.scatter = 0.1
)
x |
numeric values |
y |
numeric values |
group |
vector parallel to x and y that specifies grouping |
colour |
vector that specifies colouring of points |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.