title: R - Pie, X values must be positive
body: <p>I am new to R and drew some testdata about countries in a csv from the web. I am currenty fooling arround with plotting and encountered said error while creating a pie chart of the worlds unemployment.</p>
  
  <p>i issued the following:</p>
  
  <pre><code>&gt;values &lt;- read.csv("D:\\test\\countrydata.csv")
  &gt;names(values)
   [1] "name"    "size"    "pop"    "unemployed" ...
  &gt;typeof(values$unemployed)
  "integer"
  &gt;pie(values$pop)
  Error in pie(values$unemployed) :
      'x' values must be positive
  &gt;pie(values$pop, na.rm=TRUE)
  Error in pie(values$unemployed, na.rm=TRUE) :
      'x' values must be positive
  </code></pre>
  
  <p>The dataset i want to plot is a set of integers, all of them are positive, 0 (thanks kim) or NA.</p>
  
  <p>0 are not a problem when plotting integers, i tried</p>
  
  <pre><code>&gt;pie(as.integer(c(0,1,2,3))
  </code></pre>
  
  <p>and it worked fine.</p>
  
  <p>What am i missing here?</p>
  
  <p>Thanks and Regards,</p>
  
  <p>BillDoor</p>