View source: R/function_series_plot.R
plot_segm | R Documentation |
plot_segm
plot segmented time serie.
plot_segm( data, output, interactive = FALSE, diag.var, x_col = "expectTime", html = FALSE, order = FALSE, stationarity = FALSE )
data |
the data.frame with the different variable |
output |
outputs of the segmentation or segclust algorithm for one number of segment |
interactive |
should graph be interactive through leaflet ? |
diag.var |
names of the variables on which statistics are calculated |
x_col |
column name for time |
html |
should the graph be incorporated in a markdown file through htmltools::tagList() |
order |
should cluster be ordered |
stationarity |
if TRUE, cut each segment in three and plot each part with its own mean to assess stationarity of each segment |
a graph
## Not run: #res.segclust is the results of the segmentation-clustering algorithm ncluster = 3 nseg = 10 g <- plot_segm(data = res.segclust$data, output = res.segclust$outputs[[paste(ncluster,"class -",nseg, "segments")]], diag.var = x$`Diagnostic variables`,x_col = 'dateTime) #res.seg is the results of the segmentation-only algorithm nseg = 10 g <- plot_segm(data = res.segclust$data, output = res.segclust$outputs[[paste(nseg, "segments")]], diag.var = x$`Diagnostic variables`,x_col = 'dateTime) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.