plotHVT: Plot the hierarchical tesselations. Main plotting function to...

View source: R/plotHVT.R

plotHVTR Documentation

Plot the hierarchical tesselations. Main plotting function to construct hierarchical voronoi tessellations.

Description

Plot the hierarchical tesselations.

Main plotting function to construct hierarchical voronoi tessellations.

Arguments

hvt.results

List. A list containing the ouput of HVT 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.

pch1

Numeric. Symbol type of the centroids of the tessellations (parent levels). Refer points. (default = 21)

centroid.size

Numeric. Size of centroids of first level tessellations. (default = 3)

title

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

maxDepth

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

Author(s)

Shubhra Prakash <shubhra.prakash@mu-sigma.com>, Sangeet Moy Das <sangeet.das@mu-sigma.com>

See Also

HVT
hvtHmap

Examples


data("USArrests",package="datasets")

hvt.results <- list()
hvt.results <- HVT(USArrests, n_cells = 15, depth = 1, quant.err = 0.2, 
                   distance_metric = "L1_Norm", error_metric = "mean",
                   projection.scale = 10, normalize = TRUE,
                   quant_method="kmeans",diagnose=TRUE)
plotHVT(hvt.results, line.width = c(0.8), color.vec = c('#141B41'), 
        maxDepth = 1)


muHVT documentation built on March 7, 2023, 6:38 p.m.