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

Description Usage Arguments Value

View source: R/plot.R

Description

Density geom for plot.mcpfit()

Usage

1
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 Aug. 3, 2020, 5:07 p.m.