plot_coess | R Documentation |
Generates a ranked scatter plot of cossential genes from annotate
outputs
plot_coess(
result_df = NULL,
inflection_df = NULL,
label_genes = FALSE,
label_n = NULL
)
result_df |
data frame, A data frame output from |
inflection_df |
data frame, A data frame output from |
label_genes |
logical, TRUE to trigger gene name labeling, Default: FALSE |
label_n |
integer, Number of genes from either end to label, Default: 1 |
A plot generated by ggplot2, additional ggplot layers can be applied directly using +
gretta_data_dir <- './GRETTA_example/'
gretta_output_dir <- './GRETTA_example_output/'
if(!dir.exists(gretta_data_dir)){
download_example_data(".")
}
load(paste0(
gretta_data_dir,'/sample_22Q2_ARID1A_coessential_result.rda'),
envir = environment())
load(paste0(
gretta_data_dir,'/sample_22Q2_ARID1A_coessential_inflection.rda'),
envir = environment())
plot_coess(
result_df = coess_df,
inflection_df = coess_inflection_df,
label_genes = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.