event.size.plot: Plots the probability that a combination of a certain size...

View source: R/event_size_plot.R

event.size.plotR Documentation

Plots the probability that a combination of a certain size appears

Description

The function takes all combination size in a netfacs object, and plots the distribution of ratios between the observed value and all randomisations

Usage

event.size.plot(netfacs.data)

Arguments

netfacs.data

object resulting from netfacs() function

Value

Function returns a ggplot showing for each combination size the observed and expected probabilities of occurrance

Examples

### 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
)

event.size.plot(angry.face)

NetFACS documentation built on March 18, 2022, 7:40 p.m.