visualize_keywords {keyATM} | R Documentation |
Visualize keywords
Description
Visualize the proportion of keywords in the documents.
Usage
visualize_keywords(docs, keywords, prune = TRUE, label_size = 3.2)
Arguments
docs |
a keyATM_docs object, generated by |
keywords |
a list of keywords |
prune |
logical. If |
label_size |
the size of keyword labels in the output plot. Default is |
Value
keyATM_fig object
See Also
Examples
## Not run:
# Prepare a keyATM_docs object
keyATM_docs <- keyATM_read(input)
# Keywords are in a list
keywords <- list(Education = c("education", "child", "student"),
Health = c("public", "health", "program"))
# Visualize keywords
keyATM_viz <- visualize_keywords(keyATM_docs, keywords)
# View a figure
keyATM_viz
# Save a figure
save_fig(keyATM_viz, filename)
## End(Not run)
[Package keyATM version 0.5.2 Index]