title: Line graph in ggplot R with one numeric variable
body: <p>I have a dataframe as shown below, in which i would like to plot "FREQ" values on X-axis as a line graph for each class in TYPE with the total count on Y-axis</p>
  
  <pre><code>ID     FREQ    TYPE
  ID1    0.0827068    A
  ID2    0.0827068    A
  ID3    0.0150376    B
  ID4    0.0075188    B
  ID5    0.07838      C
  ID6    0.0676692    C
  </code></pre>
  
  <p>I managed to plot a histogram with the below command:</p>
  
  <pre><code>ggplot(CNV.sort1, aes(x = FREQ,y=..density..,fill=TYPE)) + geom_histogram()
  </code></pre>
  
  <p>geom_line</p>
  
  <p>However, i would need a line graph with the X-axis breaks as shown below and total events at each data point on Y-axis.</p>
  
  <p><a href="https://i.stack.imgur.com/6Vi4c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Vi4c.png" alt="enter image description here"></a></p>
  
  <p>I tried using geom_line()</p>
  
  <pre><code>ggplot(CNV.sort1, aes(x = FREQ,y=..density..,fill=TYPE)) + geom_line()
  Error in eval(expr, envir, enclos) : object 'density' not found
  </code></pre>
  
  <p>I am missing out something to get a line graph. Any clues offered will be helpful!!</p>