This function should be used to plot the object exported by
keyword_group
. It could draw a robust word cloud of keywords.
keyword_cloud(tibble_graph, group_no = NULL, top = 50, max_size = 20)
A tbl_graph
output by keyword_group
.
If one wants to visualize a specific group, gives the group number.
Default uses NULL
,which returns all the groups.
How many top keywords (by frequency) should be plot? Default uses 50.
Size of largest keyword.Default uses 20.
In the output graph, the size of keywords is proportional to the keyword
frequency, keywords in different colours belong to different group. For advanced
usage of word cloud, use ggwordcloud directly with the grouped keywords
yielded by keyword_group
.
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
library(akc)
# \donttest{
bibli_data_table %>%
keyword_clean(id = "id",keyword = "keyword") %>%
keyword_group(id = "id",keyword = "keyword") -> grouped_keyword
grouped_keyword %>%
keyword_cloud()
grouped_keyword %>%
keyword_cloud(group_no = 1)
# }