Description Usage Arguments Value Examples
View source: R/distribution_plot.R
The function takes all single elements in a netfacs object, and plots the distribution of probabilities under the null hypothesis, marking where the observed probability falls
1 | distribution.plot(netfacs.data)
|
netfacs.data |
object resulting from netfacs() function |
Function returns a ggplot showing for each element the distribution of expected probabilities (blue) and the observed probability (black line)
1 2 3 4 5 6 7 8 9 10 11 12 | ### how do angry facial expressions differ from non-angry ones?
data(emotions_set)
angry.face <- netfacs(
data = emotions_set[[1]],
condition = emotions_set[[2]]$emotion,
test.condition = "anger",
ran.trials = 100,
combination.size = 2
)
# show distribution of AU4
distribution.plot(netfacs.data = angry.face)$"4"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.