Skip to content

Stroke on geom_point data with variable containing NAs #4840

Closed
@henningpohl

Description

@henningpohl

I'm trying to plot some data where I'd like to highlight certain points with a red stroke. Here's a minimal example of that:

library(ggplot2)
ggplot() + aes(x=c(0, 1), y=c(1, 1), stroke=c(NA, 2)) +
  geom_point(shape=22, fill="blue", color="red", size=10)
#> Error in checkNA("fontsize"): mixture of missing and non-missing values for fontsize

A similar issue was previously raised for geom_sf as #3483.

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