title: Histogram and Boxplots in Same Panel
body: <p>I have a dataframe with 8 columns (8 variables) and 1000's of observations. I would like to plot a histogram and a boxplot for each variable in the same panel.</p>
  
  <p>For example</p>
  
  <p>h1 h2 h3 h4</p>
  
  <p>b1 b2 b3 b4</p>
  
  <p>h5 h6 h7 h8</p>
  
  <p>b5 b6 b7 b8</p>
  
  <p>where hn= histogram of variable n.
  and bn= boxplot of variable n.</p>
  
  <p>I tried
  boxplot(dataframe)</p>
  
  <p>hist(dataframe)</p>
  
  <p>But the boxplots are located in the same chart and I get the following error for the histogram:</p>
  
  <p>Error in hist.default(dataframe) = 'x' must be numeric</p>
  
  <p>Thanks in advance!</p>
  
  <p>pd. is it possible to add a color palette to this panel?</p>