Skip to content

Warning received when using color aesthetic with geom_point #660

@bobbygs

Description

@bobbygs

Running this code:
ggplot(aes(x='carat', y='price', color='cut'), data=diamonds) + geom_point()

Gives this warning:
'c' argument looks like a single numeric RGB or RGBA sequence, which should be avoided as value-mapping will have precedence in case its length matches with 'x' & 'y'. Please use a 2-D array with a single row if you really want to specify the same RGB or RGBA value for all points.

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