plot.confirm function

Plot confirm objects

Plot confirm objects

Plot the posterior hypothesis probabilities as a pie chart, with each slice corresponding the probability of a given hypothesis.

## S3 method for class 'confirm' plot(x, ...)

Arguments

  • x: An object of class confirm
  • ...: Currently ignored.

Returns

A ggplot object.

Examples

##################################### ##### example 1: many relations ##### ##################################### # data Y <- bfi hypothesis <- c("g1_A1--A2 > g2_A1--A2 & g1_A1--A3 = g2_A1--A3; g1_A1--A2 = g2_A1--A2 & g1_A1--A3 = g2_A1--A3; g1_A1--A2 = g2_A1--A2 = g1_A1--A3 = g2_A1--A3") Ymale <- subset(Y, gender == 1, select = -c(education, gender))[,1:5] # females Yfemale <- subset(Y, gender == 2, select = -c(education, gender))[,1:5] test <- ggm_compare_confirm(Ymale, Yfemale, hypothesis = hypothesis, iter = 250, progress = FALSE) # plot plot(test)
  • Maintainer: Philippe Rast
  • License: GPL-2
  • Last published: 2024-12-22