View source: R/plot_SynergyLMM.R
plot_SynergyLMM | R Documentation |
Generic function to generate different types of plots based on SynergyLMM outputs.
plot_SynergyLMM(object, plot_type = "lmmModel", ...)
object |
An object generated by |
plot_type |
String indicating the type of plot to generate. Possible options include:
|
... |
Additional arguments passed to the specific plot function. |
Different output plots are produced depending on the plot_type
selected.
plot_lmmModel()
, plot_lmmSynergy()
, plot_ObsvsPred()
, plot_ranefDiagnostics()
, plot_residDiagnostics()
.
data(grwth_data)
# Fit the model
lmm <- lmmModel(
data = grwth_data,
sample_id = "subject",
time = "Time",
treatment = "Treatment",
tumor_vol = "TumorVolume",
trt_control = "Control",
drug_a = "DrugA",
drug_b = "DrugB",
combination = "Combination",
show_plot = FALSE
)
# Plot lmmModel
plot_SynergyLMM(lmm, plot_type = "lmmModel",
trt_control = "Control",
drug_a = "DrugA",
drug_b = "DrugB",
combination = "Combination"
)
# Plot ObsvsPred
plot_SynergyLMM(lmm, plot_type = "ObsvsPred")
# Plot ranefDiagnostics
plot_SynergyLMM(lmm, plot_type = "ranefDiagnostics")
# Plot residDiagnostics
plot_SynergyLMM(lmm, plot_type = "residDiagnostics")
# Plot lmmSynergy
lmmSyn <- lmmSynergy(lmm)
plot_SynergyLMM(lmmSyn, plot_type = "lmmSynergy")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.