# NOT RUN {
data <- subset(directAntivirals, experiment == 1)
## Data must contain d1, d2 and effect columns
fitResult <- fitMarginals(data)
data_mean <- aggregate(effect ~ d1 + d2, data = data[, c("d1", "d2", "effect")],
FUN = mean)
## Construct the surface from marginal fit estimates based on HSA
## model and color it by mean effect level
plotResponseSurface(data, fitResult, null_model = "hsa",
colorBy = data_mean, breaks = 10^(c(0, 3, 4, 6)),
colorPalette = c("grey", "blue", "green"))
## Response surface based on Loewe additivity model and colored with
## rainbow colors. Legend will not be displayed in any case.
plotResponseSurface(data, fitResult, null_model = "loewe",
colorBy = "colors", colorPalette = rainbow(6))
# }
Run the code above in your browser using DataLab