Skip to content

geom_hex no longer recognizes ..count.. #1747

@Ax3man

Description

@Ax3man

Strongly related to #1608.

This used to work:

DF <- data.frame(x=rnorm(1000), y=rnorm(1000))
ggplot(DF) + geom_hex(aes(x=x, y=y, alpha=..count..))

But now returns the error: object 'count' not found. #1608 reported the same behavior for ..density.. but this has been resolved since. There is a perfectly viable workaround using ..value.. instead, but ..count.. seems more consistent with other stats and geoms, and old code may no longer work.

Also see on SO.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions