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
Post a Comment