I am using qplot from ggplot2 to plot the distances of seeds dispersed by different species in R. When I use geom='density'
, it works just fine! But what I really want is a frequency/area plot, for which I get an error I do not know how to address.
This works:
qplot(Dist,data=testx,geom="density",fill=Animal,log=c('x','y'),alpha=I(0.5))
This doesn't work:
qplot(Dist,data=testx,geom="area",fill=Animal,log=c('x','y'))
Error in exists(name, envir = env, mode = mode) :
argument "env" is missing, with no default
Help? Thanks!