plot_segm: Plot segmentation on time-serie

View source: R/function_series_plot.R

plot_segmR Documentation

Plot segmentation on time-serie

Description

plot_segm plot segmented time serie.

Usage

plot_segm(
  data,
  output,
  interactive = FALSE,
  diag.var,
  x_col = "expectTime",
  html = FALSE,
  order = FALSE,
  stationarity = FALSE
)

Arguments

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

Value

a graph

Examples

## 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)

segclust2d documentation built on May 29, 2024, 6:41 a.m.