Skip to content

Visual aesthetics (alpha, color, fill) for continuous variable (numeric type) mapping #90

@xiaoyingpu

Description

@xiaoyingpu

For geom_bloc -> area plots. (density plots seem fine). Leftover from issue PR #88

For example, the following code should work, but the second one throws Error: Discrete value supplied to continuous scale

ggplot(mtcars) + geom_bloc(aes(width = c(P(cyl)), fill = cyl)) # this doesn't color the blocks
ggplot(mtcars) + geom_bloc(aes(width = c(P(cyl)), fill = (cyl))) # this throws an error

This already works

ggplot(mtcars) + geom_bloc(aes(width = c(P(cyl)), fill = factor(cyl)))

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions