Description Usage Arguments See Also Examples
View source: R/plot_keywords.R
plot_keywords
plots keywords for each scaled text dimension.
1 2 3 | plot_keywords(scores, x_dimension = 1, y_dimension = 2,
q_cutoff = 0.9, plot_density = FALSE, unstretch = FALSE,
color = FALSE)
|
scores |
List from output of |
x_dimension |
An integer scalar. Dimension for x axis. |
y_dimension |
An integer scalar. Dimension for y axis. |
q_cutoff |
A numeric (0-1) scalar. Proportion of words to plot. For example, setting q_cutoff=0.9 will plot the most common 10% of words. |
plot_density |
A logical scalar. Plot both biplot and density. |
unstretch |
A logical scalar. Move pivot words toward origin. |
color |
A logical scalar. Color words in plot. If vector |
scale_text
,
read_word_embeddings
,
get_keywords
,
score_documents
, doc_to_tdm
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
scores <- scale_text(
meta=out$meta,
tdm=tdm
)
plot_keywords(
scores, x_dimension=1, y_dimension=2, q_cutoff=0.9
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.