plot.multiChains {sentopics}R Documentation

Plot the distances between topic models (chains)

Description

Plot the results of chainsDistance(x) using multidimensional scaling. See chainsDistances() for details on the distance computation and stats::cmdscale() for the implementation of the multidimensional scaling.

Usage

## S3 method for class 'multiChains'
plot(
  x,
  ...,
  method = c("euclidean", "hellinger", "cosine", "minMax", "naiveEuclidean",
    "invariantEuclidean")
)

Arguments

x

a valid multiChains object, obtained through the estimation of a topic model using fit() and the argument nChains greater than 1.

...

not used

method

the method used to measure the distance between chains.

Value

Invisibly, the coordinates of each topic model resulting from the multidimensional scaling.

See Also

chainsDistances() cmdscale()

Examples

models <- LDA(ECB_press_conferences_tokens)
models <- fit(models, 10, nChains = 5)
plot(models)

[Package sentopics version 0.7.3 Index]