title: plotting two histograms together
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3541713/how-to-plot-two-histograms-together-in-r">How to plot two histograms together in R?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to plot two histograms together, both of them having same x axis units and y axis units. Two histograms are taken from two files, inp1 and inp2. I have tried the following code but it is not working:</p>
  
  <pre><code>x1&lt;-hist(inp1, 120, plot = 0)  
  x2&lt;-hist(inp2, 120, plot = 0)  
  hist(x1, x2, 240, plot = 1)
  </code></pre>