<p>One way is to increase the outer margins of plot.</p>
<pre class="lang-r prettyprint-override"><code>par(oma=c(7,0,0,0))
tcgaCompare(maf = laml, primarySite = TRUE)
</code></pre>

CC BY-SA 4.0
2020-07-23T00:44:58.913Z
2020-07-23T00:44:58.913Z
Ryan SY Kwan
<p>I have a <em>{maftools}</em> plot:</p>
<p>whatever I try to save that completely I see the down part of plot is trimmed like</p>
<p><a href="https://i.sstatic.net/AGCY8.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/AGCY8.png" alt="enter image description here" /></a></p>
<p>I have tried both save as pdf and save as image options which did not differ</p>
<p>Any suggestion please?</p>
<p>Plot comes by this code</p>
<pre><code>tcgaCompare(maf = laml,cohortName = &quot;Cohort&quot;,rm_zero = FALSE,decreasing = TRUE,logscale = TRUE,primarySite = TRUE,col = c(&quot;grey30&quot;, &quot;red&quot;),medianCol = &quot;black&quot;)
</code></pre>

<r><maftools>
maftools tcgaCompare plot: x-axis labels getting clipped
# maftools tcgaCompare plot: x-axis labels getting clipped

(Asked by: username_0 on 2020-07-16)

I have a {maftools} plot:
whatever I try to save that completely I see the down part of plot is trimmed like

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")

**Tags:** r, maftools

---

## 1 answers

### Answer by username_1 on 2020-07-23. Score: 2 | Accepted answer

One way is to increase the outer margins of plot.
par(oma=c(7,0,0,0))
tcgaCompare(maf = laml, primarySite = TRUE)


---

