View source: R/network_conditional.R

network_conditional | R Documentation |

This is a convenience function to create and visualize a network of
conditional probabilities for all dyadic element combinations of a
`netfacs`

object. Conditional probabilities are calculated using
the `conditional_probabilities`

function.

network_conditional( netfacs.data, min.prob = 0, min.count = 0, ignore.element = NULL, plot.bubbles = TRUE )

`netfacs.data` |
object resulting from |

`min.prob` |
minimum conditional probability that should be shown in the graph |

`min.count` |
minimum number of times that a combination should occur before being included in the graph |

`ignore.element` |
string vector, can be used to exclude certain elements when creating the plots |

`plot.bubbles` |
if TRUE (default), then the nodes in the network plots will be surrounded by bubbles; if FALSE, the edges connect the names directly |

Function returns named list that includes a
`tbl_graph`

network and a
`ggraph`

plot.

`netfacs`

, `conditional_probabilities`

### 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 ) conditional.probs <- conditional_probabilities(angry.face) network_conditional( netfacs.data = conditional.probs, min.prob = 0.01, min.count = 3, ignore.element = "25", plot.bubbles = FALSE )

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.