Histogram on main diagonal of pairs function in R
<p>I'm trying to plot a correlation matrix in R with histograms on main diagonal using:</p>

<pre><code>pairs(credit[,-(4:5)], diag.panel=panel.hist)
</code></pre>

<p>But I get </p>

<pre><code>object 'panel.hist' not found
</code></pre>

<p>What's wrong?</p>