Plot a TSMP object

# S3 method for ArcCount
plot(
  x,
  data,
  type = c("data", "matrix"),
  exclusion_zone = NULL,
  edge_limit = NULL,
  threshold = stats::quantile(x$cac, 0.1),
  main = "Arcs Discover",
  xlab = "index",
  ylab = "",
  ...
)

# S3 method for Valmod
plot(
  x,
  ylab = "distance",
  xlab = "index",
  main = "Valmod Matrix Profile",
  data = FALSE,
  ...
)

# S3 method for MatrixProfile
plot(
  x,
  ylab = "distance",
  xlab = "index",
  main = "Unidimensional Matrix Profile",
  data = FALSE,
  ...
)

# S3 method for MultiMatrixProfile
plot(
  x,
  ylab = "distance",
  xlab = "index",
  main = "Multidimensional Matrix Profile",
  ...
)

# S3 method for SimpleMatrixProfile
plot(
  x,
  ylab = "distance",
  xlab = "index",
  main = "SiMPle Matrix Profile",
  data = FALSE,
  ...
)

# S3 method for Fluss
plot(
  x,
  data,
  type = c("data", "matrix"),
  main = "Fast Low-cost Unipotent Semantic Segmentation",
  xlab = "index",
  ylab = "",
  ...
)

# S3 method for Floss
plot(
  x,
  data,
  type = c("data", "matrix"),
  main = "Fast Low-cost Online Semantic Segmentation",
  xlab = "index",
  ylab = "",
  ...
)

# S3 method for Chain
plot(
  x,
  data,
  type = c("data", "matrix"),
  main = "Chain Discover",
  xlab = "index",
  ylab = "",
  ...
)

# S3 method for Discord
plot(
  x,
  data,
  type = c("data", "matrix"),
  ncol = 3,
  main = "Discord Discover",
  xlab = "index",
  ylab = "",
  ...
)

# S3 method for Snippet
plot(
  x,
  data,
  ncol = 3,
  main = "Snippet Finder",
  xlab = "index",
  ylab = "",
  ...
)

# S3 method for Motif
plot(
  x,
  data,
  type = c("data", "matrix"),
  ncol = 3,
  main = "MOTIF Discover",
  xlab = "index",
  ylab = "",
  ...
)

# S3 method for MultiMotif
plot(
  x,
  data,
  type = c("data", "matrix"),
  ncol = 3,
  main = "Multidimensional MOTIF Discover",
  xlab = "index",
  ylab = "",
  ...
)

# S3 method for Salient
plot(x, data, main = "Salient Subsections", xlab = "index", ylab = "", ...)

# S3 method for PMP
plot(
  x,
  ylab = "distance",
  xlab = "index",
  main = "Unidimensional Matrix Profile",
  data = FALSE,
  ...
)

Arguments

x

a Matrix Profile

data

the data used to build the Matrix Profile, if not embedded to it.

type

"data" or "matrix". Choose what will be plotted.

exclusion_zone

if a number will be used instead of Matrix Profile's. (Default is NULL).

edge_limit

if a number will be used instead of Matrix Profile's exclusion zone. (Default is NULL).

threshold

the maximum value to be used to plot.

main

a string. Main title.

xlab

a string. X label.

ylab

a string. Y label.

...

further arguments to be passed to plot(). See par().

ncol

an int. Number of columns to plot Motifs.

Value

None

Examples


mp <- tsmp(mp_toy_data$data[1:200, 1], window_size = 30, verbose = 0)
plot(mp)