ch.moralsGetAndPlotQuantDirOverlap: A function to get and plot directional overlaps by quantity.

ch.moralsGetAndPlotQuantDirOverlapR Documentation

A function to get and plot directional overlaps by quantity.

Description

This function gets and plots directional overlaps by quantity. It simply combines four other functions: ch.moralsGetDirOverlapForAllProbes(); ch.moralsQuantsToGrps(); ch.moralsGetDirOverlapByGrp(); and ch.stripPlotByGrp().

Usage

ch.moralsGetAndPlotQuantDirOverlap(
  data,
  probe1Col,
  probe2Col,
  overlapCol,
  directionCol,
  quantValueCuts,
  filename = NULL,
  ...
)

Arguments

data

a dataframe containing overlap data for probe combinations.

probe1Col

a string the specifies the column name in "data" that contains the first probe item.

probe2Col

a string the specifies the column name in "data" that contains the second probe item.

overlapCol

a string that specifies the name of the column in "data" that contains the overlap column.

directionCol

a string that specifies the name of the column in "data" that contains the direction column that indications the direction of the overlap.

quantValueCuts

a vector of numbers that specifies the cutoff values for each quantity. The first category is <= to the first cutoff value; each successive category (c1, c2, etc) is c1 < X <= c2; the final category is greater than the last number in the vector.

filename

the filename (pdf) to save the figure. DEFAULT = NULL (file not saved)

Value

a dataframe with the probe in one column, it's average directional overlap in another, its N in another, followed by separate columns containing the average directional overlap and N for each group.

Examples

ch.moralsGetAndPlotQuantDirOverlap (overlapData, "IA1", "IB1", "overlap","direction", quantValueCuts = c(1, 7, 15), filename = "out.pdf")

ccpluncw/ccpl_R_chMorals documentation built on June 15, 2025, 3:02 a.m.