R ggplot, plot one column against another column in the dataframe : <p>I have a simple dataframe with 2 columns <code>date_booking</code> and <code>price</code> . I tried the simple default plot function:</p>

<p><code>plot(codedf$date_booking,codedf$price)</code></p>

<p>, which gave me this:</p>

<p><a href="https://i.stack.imgur.com/YHjxe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YHjxe.png" alt="enter image description here"></a></p>

<p>This is my first time using R and picked R for the plotting stuff. I learned ggplot provides better visualizations, so I installed it and just changed the above code to:</p>

<p><code>ggplot( aes(x=codedf$date_booking,y=codedf$price) )</code></p>

<p>which gave me this error : <strong>ggplot2 doesn't know how to deal with data of class uneval</strong></p>

<p>I thought this may be because my x axis is a datetime string and I didn't specify any conversion format. So I tried plotting only the price (against itself) , which is of type int:</p>

<p><code>ggplot( aes(x=codedf$price,y=codedf$price) )</code></p>

<p>And this again gave the same error.</p>

<p>What is the easiest way to plot one column against another in ggplot?</p>
