Learn R Programming

sentopics (version 0.7.4)

plot.multiChains: 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 multiChains
plot(
  x,
  ...,
  method = c("euclidean", "hellinger", "cosine", "minMax", "naiveEuclidean",
    "invariantEuclidean")
)

Value

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

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.

See Also

chainsDistances() cmdscale()

Examples

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

Run the code above in your browser using DataLab