geom_cp_density: Density geom for 'plot.mcpfit()'

View source: R/plot.R

geom_cp_densityR Documentation

Density geom for plot.mcpfit()

Description

Density geom for plot.mcpfit()

Usage

geom_cp_density(fit, facet_by, limits_y)

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)

Value

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


mcp documentation built on March 18, 2022, 6:41 p.m.