plot.lm Error: $ operator is invalid for atomic vectors
<p>I have the following regression model with transformations:</p>

<pre><code>fit &lt;- lm( I(NewValue ^ (1 / 3)) ~ I(CurrentValue ^ (1 / 3)) + Age + Type - 1,
           data = dataReg)
plot(fit)                                                                      
</code></pre>

<p>But <code>plot</code> gives me the following error:</p>

<pre><code>Error: $ operator is invalid for atomic vectors
</code></pre>

<p>Any ideas about what I am doing wrong?</p>

<p><strong>Note</strong>: <code>summary</code>, <code>predict</code>, and <code>residuals</code> all work correctly.</p>