quanteda / quanteda.textplots
Showing 2 of 10 files from the diff.

@@ -24,6 +24,7 @@
Loading
24 24
#' @seealso [quanteda.textstats::textstat_keyness()]
25 25
#' @keywords textplot
26 26
#' @examples
27 +
#' \dontrun{
27 28
#' library("quanteda")
28 29
#' # compare Trump speeches to other Presidents by chi^2
29 30
#' dfmat1 <- data_corpus_inaugural %>%
@@ -49,6 +50,7 @@
Loading
49 50
#' tstat2 <- quanteda.textstats::textstat_keyness(dfm_group(dfmat2, groups = dfmat2$party),
50 51
#'                                                target = "Democrat", measure = "lr")
51 52
#' textplot_keyness(tstat2, color = c("blue", "red"), n = 10)
53 +
#' }
52 54
textplot_keyness <-  function(x, show_reference = TRUE, show_legend = TRUE,
53 55
                              n = 20L, min_count = 2L, margin = 0.05,
54 56
                              color = c("darkblue", "gray"), labelcolor = "gray30",

@@ -88,6 +88,7 @@
Loading
88 88
#' textplot_wordcloud(dfmat2, comparison = TRUE, max_words = 100,
89 89
#'                    color = c("blue", "red"))
90 90
#'
91 +
#' \dontrun{
91 92
#' # for keyness
92 93
#' tstat <- data_corpus_inaugural[c(1, 3)] %>%
93 94
#'     tokens(remove_punct = TRUE) %>%
@@ -96,6 +97,7 @@
Loading
96 97
#'     quanteda.textstats::textstat_keyness()
97 98
#' textplot_wordcloud(tstat, min_count = 2)
98 99
#' textplot_wordcloud(tstat, min_count = 2, comparison = FALSE)
100 +
#' }
99 101
textplot_wordcloud <- function(x,
100 102
                               min_size = 0.5,
101 103
                               max_size = 4,
Files Coverage
R 80.24%
src/wordcloud.cpp 100.00%
Project Totals (7 files) 81.01%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading