plotNovelCells {HVT}R Documentation

Plot the identified outlier cell(s) in the voronoi tessellation map.

Description

This is the main plotting function to construct hierarchical voronoi tessellations and highlight the outlier cells

Usage

plotNovelCells(
  plot.cells,
  hvt.map,
  line.width = c(0.6),
  color.vec = c("#141B41"),
  pch = 21,
  centroid.size = 0.5,
  title = NULL,
  maxDepth = 1
)

Arguments

plot.cells

Vector. A vector indicating the cells to be highlighted in the map

hvt.map

List. A list containing the output of trainHVT function which has the details of the tessellations to be plotted

line.width

Numeric Vector. A vector indicating the line widths of the tessellation boundaries for each level

color.vec

Vector. A vector indicating the colors of the boundaries of the tessellations at each level

pch

Numeric. Symbol of the centroids of the tessellations (parent levels) Default value is 21.

centroid.size

Numeric. Size of centroids of first level tessellations. Default value is 0.5

title

String. Set a title for the plot. (default = NULL)

maxDepth

Numeric. An integer indicating the number of levels. (default = NULL)

Value

Returns a ggplot object containing hierarchical voronoi tessellation plot highlighting the outlier cells

Author(s)

Shantanu Vaidya <shantanu.vaidya@mu-sigma.com>

See Also

trainHVT
plotHVT

Examples

data("EuStockMarkets")
hvt.results <- trainHVT(EuStockMarkets, n_cells = 60, depth = 1, quant.err = 0.1, 
                       distance_metric = "L1_Norm", error_metric = "max",
                       normalize = TRUE,quant_method="kmeans")
#selected 55,58 are for demo purpose
plotNovelCells(c(55,58),hvt.results)

[Package HVT version 24.5.2 Index]