plot.planMM: Plotting a planMM object

Description Usage Arguments See Also Examples

Description

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

Usage

1
2
3
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
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")

## End(Not run)

MCPMod documentation built on March 26, 2020, 7:28 p.m.