Plot function for a bayesynergy object
plot.bayesynergy.Rd
A function for plotting synergy surfaces and summary statistics of a bayesynergy
object.
Usage
# S3 method for bayesynergy
plot(x, plot3D = T, save_plots = FALSE, path = NULL, plotdevice = "pdf", ...)
Arguments
- x
An object of class
bayesynergy
, the result ofbayesynergy
.- plot3D
logical; if TRUE, interactive 3D surface plots of dose response function are displayed.
- 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.
Details
This function extends plot
to draw response and interaction surfaces of the fitted model. Both three-dimensional interactive plots, and two-dimensional contour plots can be displayed.
Examples
if (FALSE) {
library(bayesynergy)
data("mathews_DLBCL")
y_mat <- mathews_DLBCL$`ispinesib + ibrutinib`[[1]]
x_mat <- mathews_DLBCL$`ispinesib + ibrutinib`[[2]]
fit <- bayesynergy(y_mat,x_mat)
plot(fit)
}