ch.moralsGetAndPlotDirOverlap | R Documentation |
This function gets and plots directional overlaps by quantity. It simply combines four other functions: ch.moralsGetDirOverlapForAllProbes(); ch.moralsQuantsToGrps(); ch.moralsGetDirOverlapByGrp(); and ch.stripPlotByGrp().
ch.moralsGetAndPlotDirOverlap(
data,
probe1Col,
probe2Col,
overlapCol,
directionCol,
grpCol = NULL,
filename = NULL,
...
)
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. |
grpCol |
a string the specifies the column name in "data" that contains the grouping variable. DEFAULT = NULL |
filename |
the filename (pdf) to save the figure. DEFAULT = NULL (file not saved) |
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.
ch.moralsGetAndPlotDirOverlap (overlapData, "IA1", "IB1", "overlap","direction")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.