Create a ridge plot (requires package ggridges)

plotRN_phaseDensity(
  phaseOutput,
  plotCentroid = NA,
  excludeOther = FALSE,
  excludeNorec = FALSE,
  excludeVars = "",
  excludePhases = "",
  returnGraph = FALSE
)

Arguments

phaseOutput

Output from function rn_phases

excludeOther

Exclude the default Phase "Other"

excludeNorec

Exclude the default Phase "No recurrence"

excludeVars

Exclude specific dimension variables by name. Leave empty to include all variables (default = "")

excludePhases

Exclude Phases by their name (variable phase_name). Leave empty to include all Phases (after excludeOther and excludeNorec) (default = "")

Value

data frame with phase series.

Examples


RN <- rn(cumsum(rnorm(100)), emDim = 1, emLag = 1, emRad = NA, weighted = TRUE)
#> Set `weightedBy` to 'si' due to the value of `weighted`
outPhases <- rn_phases(RN)
plotRN_phaseDensity(outPhases)
#> Error in ungroup(.): could not find function "ungroup"