Description Usage Arguments Value Examples
This function visualizes the proportion of keywords in the documents.
1 | visualize_keywords(docs, keywords, prune = TRUE, label_size = 3.2)
|
docs |
A list of texts read via |
keywords |
A list of keywords |
prune |
Prune keywords that do not appear in 'docs' |
label_size |
The size of the keyword labels |
A list containing
a ggplot2 object
a tibble object that stores values
a list of keywords that appear in documents
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
# Prepare a keyATM_docs object
keyATM_docs <- keyATM_read(input)
# Keywords are in a list
keywords <- list(
c("education", "child", "student"), # Education
c("public", "health", "program"), # Health
)
# Visualize keywords
keyATM_viz <- visualize_keywords(keyATM_docs, keywords)
# View a figure
keyATM_viz
# Or: `keyATM_viz$figure`
# Save a figure
save_fig(keyATM_viz, filename)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.