title: Why is ggplot is turning my plot into a list
body: <p><img src="https://i.stack.imgur.com/f5LGt.png" alt="Dataframe wanting to plot" /></p>
  <p>The image is 5 rows and two variables I am wanting to plot and below is my code I am using.</p>
  <p>The second image shows the results<br />
  <img src="https://i.stack.imgur.com/v65i3.png" alt="List of AvgPwill" /></p>
  <pre><code>#histogram plot
  Pwill1 &lt;- ggplot(AvgPWill, aes(Segment))+geom_histogram()
  
  #Structure of AvgPWill
  str(AvgPWill)
  'data.frame':   5 obs. of  2 variables:
   $ Segment: chr  &quot;Costcutter&quot; &quot;Innovator&quot; &quot;Mercedes&quot; &quot;Workhorse&quot; ...
   $ Values : num  2084 3595 4695 2994 3422
  </code></pre>
  <p>I am not familiar with the plot function but I tried this and received this error:</p>
  <pre><code>plot(AvgPWill$Segment, AvgPWill$Values) 
  </code></pre>
  <p>Error in plot.window(...) : need finite 'xlim' values</p>
  <p>In addition: Warning messages:<br />
  1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion<br />
  2: In min(x) : no non-missing arguments to min; returning Inf<br />
  3: In max(x) : no non-missing arguments to max; returning -Inf</p>