synergy_plot_bycomp {BIGL}R Documentation

Plot 2D cross section of response surface

Description

Plot 2D cross section of response surface

Usage

synergy_plot_bycomp(ls, xlab = NULL, ylab = NULL, color = FALSE, plotBy = NULL)

Arguments

ls

list of results objects obtained from fitSurface. Names of list objects expected to be one of the null model options i.e. loewe, loewe2, hsa, bliss

xlab

label for x-axis

ylab

label for y-axis

color

plot lines in colour? Defaults to FALSE

plotBy

compound name to be used for order of plotting. If plotBy = "Compound 1" then plots are split by concentrations in Compound 1 and concentrations in Compound 2 are shown on the x-axis.

Author(s)

Mohammed Ibrahim

Examples

## Not run: 
  data <- subset(directAntivirals, experiment == 1)
  transforms <- list("PowerT" = function(x, args) with(args, log(x)),
                     "InvPowerT" = function(y, args) with(args, exp(y)),
                     "BiolT" = function(x, args) with(args, N0 * exp(x * time.hours)),
                     "InvBiolT" = function(y, args) with(args, 1/time.hours * log(y/N0)),
                     "compositeArgs" = list(N0 = 1, time.hours = 72))
  fitResult <- fitMarginals(data, transforms)
  nullModels <- c("loewe", "loewe2", "bliss", "hsa")
  rs_list <- Map(fitSurface, null_model = nullModels, MoreArgs = list(
      data = data, fitResult = fitResult, B.CP = 50, statistic = "none"))
  synergy_plot_bycomp(ls = rs_list, plotBy = "Compound 1", color = TRUE)
  synergy_plot_bycomp(ls = rs_list, plotBy = "Compound 2", color = TRUE)

## End(Not run) 

[Package BIGL version 1.9.2 Index]