title: R - plot power law line with x and y data
body: <p>I am trying to plot a power law line to fit x and y data that I already have in a data frame. I have tried power.law.fit in the igraph library but it isn't working. The data frame is:</p>
  
  <pre><code>dat=data.frame(
    x=1:8,
    ygm=c( 251.288, 167.739, 112.856, 109.705, 102.064, 94.331, 95.206, 91.415)
  )
  </code></pre>