Skip to contents

Plot -log10(p-values) of the results obtained after multiple group independence testing

Usage

plotGroupIndependence(
  groups,
  top = 50,
  textSize = 10,
  colourLow = "lightgrey",
  colourMid = "blue",
  colourHigh = "orange",
  colourMidpoint = 150
)

Arguments

groups

multiGroupIndependenceTest object (obtained after running testGroupIndependence())

top

Integer: number of attributes to render

textSize

Integer: size of the text

colourLow

Character: name or HEX code of colour for lower values

colourMid

Character: name or HEX code of colour for middle values

colourHigh

Character: name or HEX code of colour for higher values

colourMidpoint

Numeric: midpoint to identify middle values

Value

ggplot object

Examples

elements <- paste("subjects", 1:50)
ref      <- elements[10:50]
groups   <- list(race=list(asian=elements[1:3],
                           white=elements[4:7],
                           black=elements[8:10]),
                 region=list(european=elements[c(4, 5, 9)],
                             african=elements[c(6:8, 10:50)]))
groupTesting <- testGroupIndependence(ref, groups, elements)
plotGroupIndependence(groupTesting)