plotGroupIndependence: Plot '-log10(p-values)' of the results obtained after...

Description Usage Arguments Value See Also Examples

View source: R/groups.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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

See Also

parseCategoricalGroups() and testGroupIndependence()

Other functions for data grouping: createGroupByAttribute(), getGeneList(), getSampleFromSubject(), getSubjectFromSample(), groupPerElem(), testGroupIndependence()

Examples

1
2
3
4
5
6
7
8
9
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)

psichomics documentation built on Nov. 8, 2020, 5:44 p.m.