plotPhaseList: Plot Phase Partitioning of RACVM analysis

View source: R/plotPhaseList.R

plotPhaseListR Documentation

Plot Phase Partitioning of RACVM analysis

Description

Plot Phase Partitioning of RACVM analysis

Usage

plotPhaseList(
  phaselist,
  cols = gplots::rich.colors(length(phaselist)),
  plot.parameters = TRUE,
  parameters = NULL,
  plot.legend = TRUE,
  legend.where = "bottomright",
  layout = c("horizontal", "vertical")
)

Arguments

phaselist

Complete "smoove" partitioning output - returned by estimatePhases

cols

colors for phases (by default uses the 'rich.colors' palette from 'gplots')

plot.parameters

whether the parameters are plotted

parameters

which parameters to plot (by default - ALL of the estimated parameters)

plot.legend

whether to plot a legend

legend.where

location of legend

layout

"horizontal" (default) or "vertical"- as preferred (partial string matching accepted)

Examples

library(smoove)

# load data
data(simSweep, package="smoove")

# perform analysis
simCP.table <- simSweep |> 
  findCandidateChangePoints(clusterwidth = 4, verbose = FALSE) |> 
  getCPtable(modelset = c("UCVM", "ACVM"), criterion = "AIC")

# obtain phases
simPhaseList <- estimatePhases(simCP.table)

#plot phases
plotPhaseList(simPhaseList)

EliGurarie/smoove documentation built on June 2, 2025, 1:45 p.m.