Skip to content

Could GeomSf$default$linetype work in the same way as linewidth etc? #6543

@davidhodge931

Description

@davidhodge931

Could GeomSf$default$linetype work in the same way as linewidth etc?

This would make it easier to reason about, if linewidth/linetype come from the same place. It'd also be cool to be able to default sf polygon linetypes to 0 for chloropleth maps, but still be able to have sf points/lines as 1.

Thanks for consideration!

library(tidyverse)
GeomSf$default_aes
#> Aesthetic mapping: 
#> * `shape`     -> NULL
#> * `colour`    -> NULL
#> * `fill`      -> NULL
#> * `size`      -> NULL
#> * `linewidth` -> NULL
#> * `linetype`  -> `from_theme(linetype)`
#> * `alpha`     -> NA
#> * `stroke`    -> 0.5
get_geom_defaults("sf")
#>   linetype alpha stroke
#> 1        1    NA    0.5

Created on 2025-07-04 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions