plot.tauSurface: Plot method for "tauSurface" objects

Description Usage Arguments See Also Examples

View source: R/plot.tauSurface.R

Description

2D slice and 3D surface plots for the interaction index surface.

Usage

1
2
## S3 method for class 'tauSurface'
plot(x, y = NULL, which = c("2d", "3d"), ...)

Arguments

x

A tauSurface object returned by getTauSurface.

y

An optional second tauSurface object returned by getTauSurface. If provided, which argument is ignored and a 2d-plot comparing two tau surfaces is produced. Note that the two estimates should have been calculated on the same HarbronFit object. Note that this argument can also be used as which. See examples.

which

Whether to show a 3d plot (surface plot) or a 2d plot (slice plot). Correspondingly tauPlot3d or tauPlot2d is called.

...

Further arguments passed to tauPlot3d or tauPlot2d.

See Also

tauPlot3d, tauPlot2d for the underlying functions and their arguments. contour.tauSurface for another visual representation of the estimated interaction indices.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data("checkerboardData", package = "drugCombo")
data1 <- checkerboardData[checkerboardData$exp == 1, ]
fitUniform <- fitModel(data1, model = "uniform")
tauUniform <- getTauSurface(fitUniform)
fitLinear <- fitModel(data1, model = "linear1")
tauLinear <- getTauSurface(fitLinear)
plot(tauUniform)
plot(tauLinear, which = "2d", side = "d2", facetBy = "d1")
plot(tauLinear, which = "3d")
plot(tauUniform, tauLinear, tauNames = c("uniform", "linear"))
plot(tauUniform, tauLinear, continuous2 = FALSE)

drugCombo documentation built on June 30, 2021, 1:07 a.m.