plot.PharmacoSig | R Documentation |
Given a PharmacoSig, this will plot a volcano plot, with parameters to set cutoffs for a significant effect size, p value, to pick multiple testing correction strategy, and to change point colors. Built on top of ggplot, it will return the plot object which can be easily customized as any other ggplot.
## S3 method for class 'PharmacoSig'
plot(
x,
adjust.method,
drugs,
features,
effect_cutoff,
signif_cutoff,
color,
...
)
x |
|
adjust.method |
|
drugs |
|
features |
|
effect_cutoff |
the cutoff to use for coloring significant effect sizes. |
signif_cutoff |
the cutoff to use for coloring significance by p value or adjusted p values. Not on log scale. |
color |
one color if no cutoffs set for plotting. A vector of colors otherwise used to color points the in three categories above. |
... |
additional arguments, not currently used, but left here for consistency with plot |
returns a ggplot object, which by default will be evaluated and the plot displayed, or can be saved to a variable for further customization by adding ggplot elements to the returned graph
data(GDSCsmall)
drug.sensitivity <- drugSensitivitySig(GDSCsmall, mDataType="rna",
nthread=1, features = fNames(GDSCsmall, "rna")[1])
plot(drug.sensitivity)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.