R: Removing unwanted `Variables sorted by number of missings:` from Graph <p>I am using the <code>VIM</code> package in R to plot missing values. I want to sort by number of values in the chart but dont want to see the section <code>Variables sorted by number of missings:</code>. The parameter <code>sortVars=TRUE,</code> is responsible for both the output and the sorting. Its useful for exploratory analysis but i want to use the output in a document using rmarkdown</p> <p>Does anyone know how to implement this. It would be better explained with the code below</p> <pre><code>set.seed(300) Q &lt;- c(1,2,3,4,5,6,NA) mydf &lt;- data.frame(participent = (1:100), A1 = sample(Q,100,replace=TRUE), A2 = sample(Q,100,replace=TRUE), A3 = sample(Q,100,replace=TRUE), B1 = sample(Q,100,replace=TRUE), B2 = sample(Q,100,replace=TRUE), B3 = sample(Q,100,replace=TRUE), C1 = sample(Q,100,replace=TRUE), C2 = sample(Q,100,replace=TRUE), C3 = sample(Q,100,replace=TRUE) ) # Missing Values sorted by volume with unwanted output aggr_plot &lt;- aggr(mydf, col=c('lightgrey','darkgreen'), numbers=FALSE, sortVars=TRUE, combined = TRUE, only.miss = TRUE, labels=names(mydf), cex.axis=.45, plot = TRUE) # Missing Values sorted by volume without unwanted output aggr_plot &lt;- aggr(mydf, col=c('lightgrey','darkgreen'), numbers=FALSE, sortVars=FALSE, combined = TRUE, only.miss = TRUE, labels=names(mydf), cex.axis=.45, plot = TRUE) </code></pre>