plotOptimalClustersTree: plotOptimalClustersTree

View source: R/plotOptimalClustersTree.R

plotOptimalClustersTreeR Documentation

plotOptimalClustersTree

Description

plotOptimalClustersTree is a support function for plotting the hierarchical tree of optimal clusters from FindMaxHomoOptimalPartitions function.

The red node(s) are the optimal homogeneous clusters while the gray nodes are non-optimal clusters.

Usage

plotOptimalClustersTree(resObj)

Arguments

resObj

is an object list, which is the output of FindMaxHomoOptimalPartitions function

Value

No return value, called for plotting the hierarchical tree of optimal clusters.

Examples

# Running FindMaxHomoOptimalPartitions using simulation data
DataT<-SimpleSimulation(100,type=1)
obj<-FindMaxHomoOptimalPartitions(DataT,gamma=0.05)
# Plotting the result
plotOptimalClustersTree(obj)


DarkEyes/MRReg documentation built on Aug. 24, 2022, 5:47 p.m.