title: Plot Frequency Distribution of One-Column Data in R
body: <p>I have a single series of values (i.e. one column of data), and I would like to create a plot with the range of data values on the x-axis and the frequency that each value appears in the data set on the y-axis.</p>
  
  <p>What I would like is very close to a <a href="http://www.statmethods.net/graphs/density.html" rel="nofollow noreferrer">Kernel Density Plot</a>:</p>
  
  <pre><code># Kernel Density Plot
  d &lt;- density(mtcars$mpg) # returns the density data 
  plot(d) # plots the results
  </code></pre>
  
  <p>and <a href="https://stackoverflow.com/questions/16150079/frequency-distribution-in-r">Frequency distribution in R</a> on stackoverflow.</p>
  
  <p>However, I would like <em>frequency</em> (as opposed to density) on the y-axis.</p>
  
  <p>Specifically, I'm working with network degree distributions, and would like a double-log scale with open, circular points, i.e. <a href="http://thinkaurelius.files.wordpress.com/2012/02/in-degree-distribution.png?w=400" rel="nofollow noreferrer">this image</a>. </p>
  
  <p>I've done research into related resources and questions, but haven't found what I wanted:</p>
  
  <p>Cookbook for R's <a href="http://www.cookbook-r.com/Graphs/Plotting_distributions_(ggplot2)/" rel="nofollow noreferrer">Plotting distributions</a> is close to what I want, but not precisely. I'd like to replace the y-axis in its density curve example with "count" as it is defined in the histogram examples.</p>
  
  <p>The <code>ecdf()</code> function in R (i.e. <a href="https://stackoverflow.com/questions/3544002/easier-way-to-plot-the-cumulative-frequency-distribution-in-ggplot">this question</a>) may be what I want, but I'd like the observed frequency, and not a normalized value between 0 and 1, on the y-axis.</p>
  
  <p><a href="https://stackoverflow.com/questions/11454479/r-plot-frequency-distribution">This question</a> is related to frequency distributions, but I'd like points, not bars.</p>
  
  <p>EDIT:</p>
  
  <p>The data is a standard power-law distribution, i.e.</p>
  
  <pre><code>dat &lt;- c(rep(1, 1000), rep(10, 100), rep(100, 10), 100)
  </code></pre>