Learn R Programming

Xplortext (version 1.00)

plot.LexCHCca: Plots for Chronological Constrained Hierarchical Clustering from LexCHCca Objects

Description

Plots graphs from LexCHCca results: tree, barplot of the aggregation criterion values and first CA map with the documents colored in accordance with the cluster.

Usage

# S3 method for LexCHCca
plot(x, axes=c(1, 2), choice="tree", rect=TRUE, title=NULL, ind.names=TRUE,
    new.plot=FALSE, max.plot=15, tree.barplot=TRUE,...)

Arguments

x
object of LexCHCca class
axes
length-2 vector defining the axes of the CA map to plot (by default (1,2))
choice
type of graph. "tree" plots the tree; "bar" plots the barplot of the successive values of the aggregation criterion (downward reading of the tree); "map" plots the CA map where the individuals are colored in accordances with the cluster of belonging (by default "tree")
rect
if TRUE, when choice="tree" rectangles are drawn around the clusters (by default TRUE)
title
title of the graph. If NULL, a title is automatically defined (by default NULL)
ind.names
if TRUE, the document labels are written on the CA map (by default TRUE)
new.plot
if TRUE, a new window is opened (by default FALSE)
max.plot
maximum of bars in the bar plot of the aggregation criterion (by default 15)
tree.barplot
if TRUE, the barplot of intra inertia losses is added on the tree graph (by default TRUE)
further arguments passed from other methods...

Value

Returns the chosen plot

See Also

LexCHCca

Examples

Run this code
## Not run: ------------------------------------
# data(open.question)
# res.TD<-TextData(open.question,var.text=c(9,10), var.agg="Age_Group", Fmin=10, Dmin=10,
#         stop.word.tm=TRUE)
# res.LexCA<-LexCA(res.TD, graph=FALSE)
# res.chcca<-LexCHCca(res.LexCA, nb.clust=4, min=3, graph=FALSE)
# plot(res.chc, choice="tree")
# plot(res.chc, choice="map")
# plot(res.chc, choice="bar", max.plot=5)
## ---------------------------------------------

Run the code above in your browser using DataLab