Description Usage Arguments Value Examples
geom_sigmoid
Creates a ggplot that makes a smooth rank over time. To change the 'smooth' argument you need to put it outside of the 'aes' of the geom. Uses the x, xend, y and yend aestethics. Make sure each sigmoid curve is its own group.
1 2 3 4 5 6 7 8 9 10 11 12 |
mapping |
provide you own mapping. both x, xend, y and yend need to be numeric. |
data |
provide you own data |
geom |
xhange geom |
position |
change position |
na.rm |
remove missing values |
show.legend |
show legend in plot |
smooth |
how much smooth should the curve have? More means steeper curve. |
direction |
the character x or y depending of smoothing direction |
inherit.aes |
should the geom inherits aestethics |
... |
other arguments to be passed to the geom |
ggplot layer
1 2 3 4 5 6 7 8 | library(ggplot2)
df <- data.frame(x = 1:6,
y = 5:10,
xend = 7,
yend = -3:2)
ggplot(df, aes(x = x, xend = xend, y = y, yend = yend, color = factor(x))) +
geom_sigmoid()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.