r - Can't reference 'data' from within ggplot2 -


i object df not found when attempting this:

df <- data.frame(durationbin = 1:250, effort = 31:280)  ggplot(df, aes(x = durationbin, y = effort, fill = ..count../sum(df$durationbin == x))) +  stat_bin2d() 

what i'm trying have density plot, except instead of density, "the percentage of points in column." (that is, points in column 100%, each column)

does know how this?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -