make.regression.line | R Documentation |
Create a geom representing a logistic regression on the data.
make.regression.line(individual.rows, group, color, alpha = 1, ...)
individual.rows |
Data frame with each row representing a pass or fail. |
group |
Data variable specifying what groups to make into regressions. |
color |
Data variable specifying how to color regression lines. |
alpha |
Alpha value for line. |
... |
Additional arguments to pass to the underlying geom. |
geom that can be added to a ggplot to show regressions.
x and y must be specified as aesthetics on the ggplot to which this is added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.