plot.planMM {MCPMod}R Documentation

Plotting a planMM object

Description

This function displays the contrasts or model means obtained from a planMM object.

Usage

## S3 method for class 'planMM':
plot(x, superpose = TRUE, xlab = "Dose",
     ylab = NULL, resp = c("contrasts", "means"), ...)

Arguments

x A planMM object.
superpose Logical, indicating if lines should be superposed.
xlab Label for x-axis
ylab Label for y-axis
resp One of "contrasts" or "means". Determines, whether contrasts or normalized means are plotted.
... Additional arguments to the xyplot function call.

See Also

planMM

Examples

doses <- c(0, 10, 25, 50, 100, 150)
models <- list(linear = NULL, emax = c(25),
               logistic = c(50, 10.88111), exponential = c(85),
               betaMod = matrix(c(0.33, 2.31, 1.39, 1.39),
                byrow=TRUE,nrow=2))
pM <- planMM(models, doses, 50, scal = 200)
plot(pM)
plot(pM, superpose=FALSE, xlab="Different axis name")
plot(pM, resp = "means")
# example with muMat
dvec <- c(0, 10, 50, 100)
mu1 <- c(1, 2, 2, 2)
mu2 <- c(1, 1, 2, 2)
mu3 <- c(1, 1, 1, 2)
mMat <- cbind(mu1, mu2, mu3)
dimnames(mMat)[[1]] <- dvec
pM <- planMM(muMat = mMat, doses = dvec, n = 30)
plot(pM)
plot(pM, superpose=FALSE, xlab="Different axis name")

[Package MCPMod version 1.0-2 Index]