make.regression.line: Create a geom representing a logistic regression on the data.

View source: R/make-geoms.R

make.regression.lineR Documentation

Create a geom representing a logistic regression on the data.

Description

Create a geom representing a logistic regression on the data.

Usage

make.regression.line(individual.rows, group, color, alpha = 1, ...)

Arguments

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.

Value

geom that can be added to a ggplot to show regressions.

Note

x and y must be specified as aesthetics on the ggplot to which this is added.


Ergative/logisticat documentation built on May 17, 2022, 12:32 a.m.