Skip to content

stat_summary ignores geom aesthetics when used with median function #1242

Closed
@gokceneraslan

Description

@gokceneraslan
qplot(cyl, mpg, data=mtcars) + stat_summary(fun.y=median, colour="red", geom='point', size = 3)

example is no longer reproducible on master branch. It gives a warning:

Warning message:
Computation failed in `stat_summary()`:
unused arguments (colour = "red", size = 3) 

and does not plot geom_point. On the other hand, it works properly when the mean function is supplied:

qplot(cyl, mpg, data=mtcars) + stat_summary(fun.y=mean, colour="red", geom='point', size = 3)

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