View source: R/function_states_plot.R
plot_states | R Documentation |
plot_states
plot states statistics
plot_states(outputs, diag.var, position_width = 0.3, order = FALSE)
outputs |
outputs of the segmentation or segclust algorithm for one number of segment |
diag.var |
names of the variables on which statistics are calculated |
position_width |
width between different model if several models are compared |
order |
should cluster be ordered |
a graph
## Not run:
#res.segclust is the results of the segmentation-clustering algorithm
ncluster = 3
nseg = 10
g <- plot_states(output = res.segclust$outputs[[
paste(ncluster,"class -",nseg, "segments")
]],
diag.var = c("dist","angle2")
#res.seg is the results of the segmentation-only algorithm
nseg = 10
g <- plot_states(output = res.segclust$outputs[[paste(nseg, "segments")]],
diag.var = c("dist","angle2"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.