Shows qda_cooccurrence() as a triangle of code x code cells: the darker
a cell, the more often the two codes occur together; the number is in the
cell. Codes are in code-tree order, each with the colour of its code
family. Hovering a cell shows the details; in the app a click lists the
passages (qda_cooccurrence_passages()).
Usage
qda_plot_cooccurrence(
x = NULL,
measure = c("n", "jaccard"),
max_codes = 30,
file = NULL,
...
)Arguments
- x
Result of
qda_cooccurrence(); ifNULLit is computed with....- measure
"n"(count) or"jaccard"(share of units with either code that have both; evens out frequent codes).- max_codes
Show at most this many codes (the most frequent ones).
- file
Optional path: write the SVG there instead of returning it.
- ...
Arguments for
qda_cooccurrence()(e.g.unit,level).
Examples
qda_open(file.path(tempfile(), "example.jellyqda"))
qda_import(system.file("extdata", "interview_01.txt", package = "jellyqda"))
#> # A tibble: 1 × 5
#> id name format chars status
#> <int> <chr> <chr> <int> <chr>
#> 1 1 interview_01.txt txt 856 ok
qda_code_add("Career path"); qda_code_add("Motivation"); qda_code_add("Team")
qda_code(1, "Career path", segment = 5); qda_code(1, "Motivation", segment = 5)
qda_code(1, "Motivation", segment = 7); qda_code(1, "Team", segment = 7)
svg <- qda_plot_cooccurrence()
qda_plot_cooccurrence(file = tempfile(fileext = ".svg"))
qda_close()