Skip to content

Use default aesthetics from geom_point as defaults for goem_boxplot outliers #757

Closed
@nfdisco

Description

@nfdisco

Currently, the default values for the outlier arguments to geom_boxplot, that control the shape, colour and size of outliers, cannot be changed with update_geom_defaults. It makes sense because technically these parameters are not aesthetics. On the other hand, if the user changes, say, the default shape of geom_point, the result will be that geom_point and geom_boxplot will produce points with different shapes, which probably is not desirable or entirely expected.

One solution is to use the default values from geom_point as defaults for the outlier arguments in geom_boxplot, so that

update_geom_defaults("point", list(shape = 1, colour='blue',size=4))

also affects the shape, colour and size of the outlier points produced by geom_boxplot. Find patch attached.

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