maftools
maftools copied to clipboard
repel for plotOncodrive
Dear maftools-team, would it be possible to implement a repel argument in the plotOncodrive function for an easier visualisation?
Thanks a lot for this package and your help! Best, Alexander
Hi,
Plots are generated with base graphics and it is not very flexible for labeling. However, you can take the results from oncodrive
and plot it with ggplot
.
Using example dataset:
laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools")
laml <- read.maf(maf = laml.maf)
laml.sig <- oncodrive(maf = laml, AACol = 'Protein_Change', minMut = 5)
ggplot(data = laml.sig, aes(x = muts_in_clusters, y = -log10(fdr), label = Hugo_Symbol))+geom_point()+ggrepel::geom_text_repel()
This issue is stale because it has been open for 60 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.