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)

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 Dec. 7, 2022, 1:12 a.m.