View source: R/plotPhaseList.R
plotPhaseList | R Documentation |
Plot Phase Partitioning of RACVM analysis
plotPhaseList(
phaselist,
cols = gplots::rich.colors(length(phaselist)),
plot.parameters = TRUE,
parameters = NULL,
plot.legend = TRUE,
legend.where = "bottomright",
layout = c("horizontal", "vertical")
)
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) |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.