| plotZscore | R Documentation | 
This is the main function to plot the z scores against cell ids.
plotZscore(
  data,
  cell_range = NULL,
  segment_size = 2,
  reference_lines = c(-1.65, 1.65)
)
data | 
 Data frame. A data frame of cell id and features.  | 
cell_range | 
 Vector. A numeric vector of cell id range for which the plot should be displayed. Default is NULL, which plots all the cells.  | 
segment_size | 
 Integer. A numeric value to indicate the size of the bars in the plot. Default is 2.  | 
reference_lines | 
 Vector. A numeric vector of confidence interval values for the reference lines in the plot. Default is c(-1.65, 1.65).  | 
A grid of plots of z score against cell id of teh given features.
Vishwavani <vishwavani@mu-sigma.com>
data("EuStockMarkets")
dataset <- data.frame(t = as.numeric(time(EuStockMarkets)),
                     DAX = EuStockMarkets[, "DAX"],
                     SMI = EuStockMarkets[, "SMI"],
                     CAC = EuStockMarkets[, "CAC"],
                     FTSE = EuStockMarkets[, "FTSE"])
rownames(EuStockMarkets) <- dataset$t
hvt.results<- trainHVT(dataset[-1],n_cells = 60, depth = 1, quant.err = 0.1,
                      distance_metric = "L1_Norm", error_metric = "max",
                      normalize = TRUE,quant_method = "kmeans")
col_names <- c("Cell.ID","DAX","SMI","CAC","FTSE")
data <- dplyr::arrange(dplyr::select(hvt.results[[3]][["summary"]],col_names),Cell.ID)
data <- round(data, 2)
plotZscore(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.