Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

geom_cp_density

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

Regression with Multiple Change Points

v0.3.0
GPL-2
Authors
Jonas Kristoffer Lindeløv [aut, cre] (<https://orcid.org/0000-0003-4565-0595>)
Initial release
2020-07-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.