Skip to content

Any identifier with two pairs of consecutive dots is interpreted as calculated aesthetics #834

Closed
@krlmlr

Description

@krlmlr

Failing:

ggplot() + geom_histogram(aes(x=runif(1000), y=xxx..density..yyy))
## stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
## Error in eval(expr, envir, enclos) : object 'xxxdensityyyy' not found

Succeeding:

ggplot() + geom_histogram(aes(x=runif(1000), y=d..ensit..y))

Not a real problem, but one with a trivial fix. My favorite :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions