plot_ca: Plot Term Count as Correspondence Analysis

Description Usage Arguments Value Examples

View source: R/plot_ca.R

Description

A wrapper for the ca's ca + plot or plot3d.ca functions for plotting a simple correspondence analysis.

Usage

1
plot_ca(x, D3 = TRUE, ...)

Arguments

x

A termco object.

D3

logical. If TRUE plots in 3-d.

...

Other arguments passed to plot and plot3d.ca.

Value

Plots a correspondence analysis.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
data(presidential_debates_2012)

discoure_markers <- list(
    response_cries = c("\\boh", "\\bah", "\\baha", "\\bouch", "yuk"),
    back_channels = c("uh[- ]huh", "uhuh", "yeah"),
    summons = "hey",
    justification = "because"
)

(markers <- with(presidential_debates_2012,
    term_count(dialogue, list(person, time), discoure_markers)
))

plot_ca(markers, D3 = FALSE)
## Not run: 
plot_ca(markers)

## End(Not run)

trinker/termco documentation built on Jan. 7, 2022, 3:32 a.m.