title: Item frequency plots from object of class transactions in ggplot2
body: <p>Package <a href="https://cran.r-project.org/web/packages/arules/" rel="nofollow noreferrer"><code>arules</code></a> enables to quickly read transactions data (for mining association rules and frequent itemsets) which is achieved with a dedicated <em><a href="https://artax.karlin.mff.cuni.cz/r-help/library/arules/html/transactions-class.html" rel="nofollow noreferrer">transactions-class</a></em>. We can also quickly create quite raw and boring item frequency plots using <code>itemFrequencyPlot</code> function from this package (with some arguments for customisation):</p>
  
  <pre><code>library(arules)
  data("Groceries")
  itemFrequencyPlot(Groceries, topN = 20)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/8QrAg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8QrAg.png" alt="enter image description here"></a></p>
  
  <p>I would like to recreate such plots with more visual flexibility in <code>ggplot2</code> without overly excessive coding but I can't find any out-of-box dedicated functions to achieve this. Any suggestions?</p>