Description Usage Arguments Value Author(s) Examples
View source: R/plot_two_drugs.R
This function will generate a plot for 2-drug combinations. The axes are the dosage at which drugs are tested. The values could be observed response, synergy scores or the reference effects calculated from different models.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Plot2DrugHeatmap(
data,
plot_block = 1,
drugs = c(1, 2),
plot_value = "response",
statistic = NULL,
summary_statistic = NULL,
dynamic = FALSE,
plot_title = NULL,
col_range = NULL,
row_range = NULL,
high_value_color = "#A90217",
low_value_color = "#2166AC",
text_label_size_scale = 1,
text_label_color = "#000000",
title_text_size_scale = 1
)
|
data |
A list object generated by function |
plot_block |
A character/integer. It indicates the block ID for the block to visualize. |
drugs |
A vector of characters or integers with length of 2. It contains
the index for two drugs to plot. For example, |
plot_value |
A character value. It indicates the value to be visualized.
If the
If the
|
statistic |
A character or NULL. It indicates the statistics printed in the plot while there are replicates in input data. Available values are:
If it is |
summary_statistic |
A vector of characters or NULL. It indicates the
summary statistics for all the
If it is |
dynamic |
A logical value. If it is |
plot_title |
A character value. It specifies the plot title. If it is
|
col_range |
A vector of two integers. They specify the starting and ending concentration of the drug on x-axis. Use e.g., c(1, 3) to specify that only from 1st to 3rd concentrations of the drug on x-axis are used. By default, it is NULl so all the concentrations are used. |
row_range |
A vector of two integers. They specify the starting and ending concentration of the drug on y-axis. Use e.g., c(1, 3) to specify that only from 1st to 3rd concentrations of the drug on y-axis are used. By default, it is NULl so all the concentrations are used. |
high_value_color |
An R color value. It indicates the color for the high values. |
low_value_color |
An R color value. It indicates the color for low values. |
text_label_size_scale |
A numeric value. It is used to control the size text labels on the heatmap. The text size will multiply by this scale factor. |
text_label_color |
NULL or an R color value. It indicates the color for
text labels on the heatmap. If it is |
title_text_size_scale |
A numeric value. It is used to control the size of legend title, legend text, plot title, axis title, axis tick, subtitle. All the text size will multiply by this scale factor. |
A ggplot plot object.
Shuyu Zheng shuyu.zheng@helsinki.fi
Jing Tang jing.tang@helsinki.fi
1 2 3 | data("mathews_screening_data")
data <- ReshapeData(mathews_screening_data)
Plot2DrugHeatmap(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.