IntPlot: A function to visualize the results of a MANOVA

Description Usage Arguments Value See Also Examples

View source: R/IntPlot.R

Description

The function produces an interaction plot to demonstrate the results of a MANOVA using the function interaction.plot.

Usage

1
IntPlot(Scores, Cov.A, Cov.B, pvalues = rep(1, 8), int.pvalues = rep(1, 4))

Arguments

Scores

A (non-empty) numeric matrix of principle component scores or raw data.

Cov.A

A (non-empty) bivariate factor vector indicating the factor for each row in Scores

Cov.B

A (non-empty) bivariate factor vector indicating the factor for each row in Scores

pvalues

An optional vector of p values for each covariate across Scores. The length of pvalues must equal the number of columns in Scores times 2.

int.pvalues

An optional vector of p values for each interaction. The length of int.pvalues must equal the number of columns in Scores.

Value

a list of plots stored as grid plots.

See Also

interaction.plot

Examples

1
2
3
4
5
6
7
8
data(Scores)
data(CondA)
data(CondB)

pvals<-c(0.03,0.6,0.05,0.07,0.9,0.2,0.5,0.3)
int.pvals<-c(0.3,0.45,0.5,0.12)

IntPlot(Scores,CondA,CondB,pvalues=pvals, int.pvalues=int.pvals)

Example output

Warning message:
no DISPLAY variable so Tk is not available 
$`Pvalue-Colors-InteractionPlots`

$`Interaction Plots-LEGEND`

$`Interaction Plots`

multiDimBio documentation built on April 14, 2020, 5:41 p.m.