title: How can I create a histogram for all variables in a data set with minimal effort in R?
body: <p>Exploring a new data set: What is the easiest, quickest way to visualise many (all) variables?</p>
  
  <p>Ideally, the output shows the histograms next to each other with minimal clutter and maximum information. Key to this question is flexibility and stability to deal with large and different data sets. I'm using RStudio and usually deal with large and messy survey data.</p>
  
  <p>One example which comes out of the box of <code>Hmisc</code> and works quite well here is:</p>
  
  <pre><code>library(ggplot2)
  str(mpg)
  
  library(Hmisc)
  hist.data.frame(mpg)
  </code></pre>
  
  <p>Unfortunately, somewhere else I run into problems with data lables (Error in plot.new() : figure margins too large). It also crashed for a larger data set than <code>mpg</code> and I haven't figured out how to control binning. Moreover, I'd prefer a flexible solution in <code>ggplot2</code>. Note that I just started learning R and am used to the comfortable solutions provided by commercial software.</p>
  
  <p>More questions on this topic:</p>
  
  <p><a href="https://stackoverflow.com/questions/6428432/r-histogram-too-many-variables">R histogram - too many variables</a></p>
  
  <p>...?</p>