doCluster {inpdfr}R Documentation

Performs a cluster analysis on the basis of the word-occurrence data.frame.

Description

Performs a cluster analysis on the basis of the word-occurrence data.frame using hclust function.

Usage

doCluster(
  wordF,
  myMethod = "ward.D2",
  gp = FALSE,
  nbGp = 5,
  getPlot = TRUE,
  mwidth = 800,
  mheight = 800,
  formatType = "png",
  ...
)

Arguments

wordF

The data.frame containing word occurrences.

myMethod

The method to compute distances, see dist function.

gp

A logical to specify if groups should be made.

nbGp

An intger to specify the number of groups. Ignored if gp=FALSE.

getPlot

If TRUE, save the cluster plot in the RESULTS directory.

mwidth

The width of the plot in pixels.

mheight

The height of the plot in pixels.

formatType

The format for the output file ("eps", "pdf", "png", "svg", "tiff", "jpeg", "bmp").

...

Additional arguments from the hclust function.

Value

An object of class hclust.

Examples

data("wordOccuDF")
doCluster(wordF = wordOccuDF, myMethod = "ward.D2", getPlot = FALSE)

[Package inpdfr version 0.1.12 Index]