heatmap2: Create a heatmap from a given loess fit.

Description Usage Arguments See Also Examples

Description

Creates a graph of estimated p-values from a loess fit to stored simulation data. The loess fit should be created using loessPred.

Usage

1
2
heatmap2(lofit, labelX, labelY, title, mxseq = seq(0.01, 2.99, length.out
  = 300), myseq = seq(0.01, 2.99, length.out = 300), powermap = FALSE)

Arguments

lofit

fitted loess object

labelX

label for the x-axis variable. This can be a character string or an expression. If one of "t00", "t11", "w00", "w11", will be properly formatted using plotmath.

labelY

same as labelX, but for the y axis.

title

title for the plot

mxseq

sequence for the x variable, determining points at which predictions are calculated

myseq

same as mxseq, but for the y variable

powermap

if plotting power (TRUE) or type I error (FALSE); allows for different grayscale sensitivities.

See Also

loessPred

Examples

1
2
3
4
5
6
7
pmx <- createParamMx(100)

result <- apply(pmx, 1, function(x) {fitanova(mkDf(24,24,mcr.params=x,FALSE),FALSE)})
lpred <- loessPred(pval=result["pmax",],
                paramX=pmx[,"t11"], paramY=pmx[,"w11"])

heatmap2(lpred, "t11", "w11", "F1+F2")

dalejbarr/simgen documentation built on May 14, 2019, 3:32 p.m.