Learn R Programming

segclust2d (version 0.3.3)

plot_segm: 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
)

Value

a graph

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