quote_tags | R Documentation |
This function finds the unique tags of items in the quotes database and returns them as vector or a one-way table giving their frequencies.
quote_tags(table = FALSE)
table |
Logical. If |
Returns either a vector of tags in the quotes database or a one-way frequency table of the number of quotes for each tag.
quote_tags()
quote_tags(table=TRUE)
library(ggplot2)
qt <- quote_tags(table=TRUE)
qtdf <-as.data.frame(qt)
# bar plot of frequencies
ggplot2::ggplot(data=qtdf, aes(x=Freq, y=tags)) +
geom_bar(stat = "identity")
# Sort tags by frequency
qtdf |>
dplyr::mutate(tags = forcats::fct_reorder(tags, Freq)) |>
ggplot2::ggplot(aes(x=Freq, y=tags)) +
geom_bar(stat = "identity")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.