Learn R Programming

mcp (version 0.3.3)

geom_cp_density: Density geom for plot.mcpfit()

Description

Density geom for plot.mcpfit()

Usage

geom_cp_density(fit, facet_by, limits_y)

Value

A ggplot2::stat_density geom representing the change point densities.

Arguments

fit

An mcpfit object

facet_by

NULL or a a string, like plot.mcpfit(..., facet_by = "id").

include

Boolean. If TRUE and !is.null(facet_by), only return densities for the change points "affected" by facet_by. If FALSE and !is.null(facet_by), return all densities except those "affected" by facet_by. Has no effect if is.null(facet_by)