TransWikia.com

maftools tcgaCompare plot: x-axis labels getting clipped

Bioinformatics Asked on August 22, 2021

I have a {maftools} plot:

whatever I try to save that completely I see the down part of plot is trimmed like

enter image description here

I have tried both save as pdf and save as image options which did not differ

Any suggestion please?

Plot comes by this code

tcgaCompare(maf = laml,cohortName = "Cohort",rm_zero = FALSE,decreasing = TRUE,logscale = TRUE,primarySite = TRUE,col = c("grey30", "red"),medianCol = "black")

One Answer

One way is to increase the outer margins of plot.

par(oma=c(7,0,0,0))
tcgaCompare(maf = laml, primarySite = TRUE)

Correct answer by Ryan SY Kwan on August 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP