title: Remove NA values for bar plot in ggplot2.
body: <p>The issue is pretty straightforward.</p>
  
  <p>I am trying to generate a bar plot containing GDP per capita for several countries. The data is incomplete as some of the values are missing.</p>
  
  <p>For instance, for year 1960, I only have data for 3 countries.</p>
  
  <p>When I plot the data, the graph that is returned includes NAs, which I would like to exclude from the plot.</p>
  
  <p>Please see an example below:</p>
  
  <p><code>GDP &lt;- ggplot(data, aes(country,</code>1960<code>)) + geom_bar(stat = 'identity', na.rm = T)</code></p>
  
  <p>Please note that in this case, each column represents a year. The first column of the data frame consists of the name of the countries.</p>
  
  <p>If it helps, please see the attached screenshot.</p>
  
  <p><a href="https://i.stack.imgur.com/tWWix.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tWWix.png" alt="Bar plot returning NA values"></a></p>
  
  <p>Thanks.</p>