Skip to content

Default colour aesthetic in geom_polygon() set to string "NA"? #4279

Closed
@mdlama

Description

@mdlama

There might be a bug in the default aesthetics for geom_polygon(). It appears to be set to the string "NA" rather than NA. Here's a minimal reprex:

library(ggplot2)

geom_polygon()$geom$default_aes
#> Aesthetic mapping: 
#> * `colour`   -> "NA"
#> * `fill`     -> "grey20"
#> * `size`     -> 0.5
#> * `linetype` -> 1
#> * `alpha`    -> NA
#> * `subgroup` -> NULL

Created on 2020-12-01 by the reprex package (v0.3.0.9001)

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