Plot function for a synergyscreen object
plot.synergyscreen.Rd
A function for plotting summary statistics of a synergyscreen
object.
Usage
# S3 method for synergyscreen
plot(
x,
groupbyExperimentID = T,
save_plots = FALSE,
path = NULL,
plotdevice = "pdf",
...
)
Arguments
- x
An object of class
synergyscreen
, the result ofsynergyscreen
.- groupbyExperimentID
logical; if TRUE, individual plots are produced per experiment ID.
- save_plots
logical; if TRUE plots are saved locally.
- path
string; path for saving plots, if NULL defaults to work directory.
- plotdevice
string; device for saving plots locally, must be 'pdf' or 'png'
- ...
further arguments passed on to device for plotting, useful for setting width and height of saved plots.
Examples
if (FALSE) {
library(bayesynergy)
data("mathews_DLBCL")
experiment1 = list(y = mathews_DLBCL[[1]][[1]],
x = mathews_DLBCL[[1]][[2]],
drug_names = c("ispinesib","ibrutinib"))
experiment2 = list(y = mathews_DLBCL[[2]][[1]],
x = mathews_DLBCL[[2]][[2]],
drug_names = c("canertinib","ibrutinib"))
experiments = list(experiment1,experiment2)
fit <- synergyscreen(experiments)
plot(fit)
}