Conditional histogram in R
<p>I used the following commands to make a histogram of one variable in my dataframe. How Do I make a histogram of the same variable, but only for rows where the value is bigger than 0.8 (if the range of values is 0 to 1.0)?</p>

<pre><code>library('ggplot2')
qplot(df$var,
               geom="histogram",
               binwidth = 5,  
               main = "var Distribution", 
               xlab = "VAR",  
               fill=I("green"), 
               col=I("blue"), 
               alpha=I(.2),
               xlim=c(0,1.0))
</code></pre>