title: smoothing out lines on ggplot in R
body: <p>I am trying to smooth out the line in ggplot. I tried using geom_smooth but that is giving me a fitted line instead. My code is below</p>
  <pre><code>#step 1 is to load the csv file
  dataset_edited = read.csv(&quot;dsccurves.csv&quot;, header = TRUE)
  str(dataset_edited)
  
  #Check figure of all DSC curves
  plt_dsc_1 = ggplot(dataset_edited, aes(x=gt, y=enthalpy, group = location, color = year)) +
   geom_point(size=0.25)+
   scale_x_continuous(&quot;Temperature (degree C)&quot;,limits = c(50,75), breaks = seq(50,75,1))+
   scale_y_continuous(&quot;Heat flow (W/g)&quot;,limits = c(-0.37,-0.18), breaks = 
   seq(-0.37,-0.18,0.02))+
   theme_classic()+
   labs(title = &quot;A&quot;)+
   guides(guide_legend(title = &quot;Year&quot;))+ 
   theme(text = element_text(size=15))
  plt_dsc_1
  </code></pre>
  <p>Currently the image I get looked like this
  <a href="https://i.stack.imgur.com/a2nYd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a2nYd.png" alt="Current image" /></a></p>
  <p>This is my
  <a href="https://drive.google.com/file/d/12rLtROQIjem0iDDdbtdcBat38_ZCJhcz/view?usp=sharing" rel="nofollow noreferrer">data file</a></p>