Description Usage Arguments Details Value See Also
Visualize token counts.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | visualize_cnts_at(data = NULL, token = NULL, color = NULL, num_top = 10,
scale_manual_base = default_scale_manual(), scale_manual_params = list(),
labs_base = default_labs(), labs_params = list(title = "Count of Words"),
theme_base = default_theme(axis.text.y = ggplot2::element_text(angle = 30,
hjust = 1), panel.grid.major.y = ggplot2::element_blank()),
theme_params = list())
visualize_cnts(..., token, color)
visualize_cnts_facet_at(data = NULL, token = NULL, color = NULL,
facet = NULL, num_top = 10, scale_manual_base = default_scale_manual(),
scale_manual_params = list(), labs_base = default_labs(),
labs_params = list(title = "Count Over Time"),
theme_base = default_theme(axis.text.y = ggplot2::element_text(angle = 30,
hjust = 1), panel.grid.major.y = ggplot2::element_blank()),
theme_params = list(), facet_base = default_facet(facet),
facet_params = list())
visualize_cnts_facet(..., token, color, facet)
|
data |
data.frame. |
token |
bare for NSE; character for SE. Name of column in |
color |
bare for NSE; character for SE. Name of column in |
num_top |
numeric. Number of words to show. If between 0 and 1, then assumed to be a percentage. |
scale_manual_base |
list. Parameters to pass to |
scale_manual_params |
list. Additional parameters to pass to |
labs_base |
|
labs_params |
list. Additional parameters to pass to |
theme_base |
|
theme_params |
list. Additional parameters to pass to |
... |
dots. Parameters to pass directly to |
facet |
bare for NSE; character for SE. Name of column to use as 'facetting' variable. Not used if not specified. |
facet_base |
|
facet_params |
list. Additional parameters to pass to |
facet
version is for facetting. 'y' value is calculated internally
with dplyr::count()
.
Unfortunately, it seems difficult to combine this with visualize_cnts_at()
gg.
gg.
https://github.com/dgrtwo/dgrtwo.github.com/blob/master/_R/2016-08-09-trump-data.Rmd.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.