Sami Serola@serola.bsky.social·2023-10-09T08:29:58.172Z#
Context please. In CSS it is "border-color", I think...
Steve Haroz@steveharoz.com·2023-10-09T08:32:05.126Z#
It's for a new aesthetic in ggplot. We're trying to avoid US vs UK spelling conflicts.
Sami Serola@serola.bsky.social·2023-10-09T08:37:39.542Z#
Then that's indeed a potential problem. I would still choose the US "color" especially because it is spelled so in computer science context. If one try to find a synonym, then the audience may not understand what the concept is.
Sami Serola@serola.bsky.social·2023-10-09T09:21:47.772Z#
Maybe one should also see it as an search issue. If one choose to call it as "border tone", people may not find what they are looking for, if searching for "border color" or "border colour". Unless the search engine is smart enough to suggest even synonyms and not only different spelling.
Brenton Wiernik@bwiernik.bsky.social·2023-10-09T09:36:17.964Z#
I think the only reasonable option is to implement both color and colour like ggplot2 does
Matthew Kay@mjskay.com·2023-10-09T13:58:43.732Z#
Doesn't ggplot have a normalizing pass that handles names with "color" in them already? So if you make it border.colour or border_colour then border.color or border_color will also work
Brenton Wiernik@bwiernik.bsky.social·2023-10-09T17:38:19.453Z#
Ah, yep! This is done internally in aes(), so the only thing that’s needed to accommodate both spellings is export both versions of helper functions like scale_border_color_*() [ though I personally would just direct users to use scale_color_*(aesthetics = "border_color") ]
Brenton Wiernik@bwiernik.bsky.social·2023-10-09T17:39:16.834Z#
Specifically, the standardization is in ggplot2::standardise_aes_names()
Shauna Bobyqa@shaunaheron.bsky.social·2023-10-09T14:08:11.868Z#
^^ it does! As an oft-confused Canadian I use colour and color in ggplot all the time and both work just fine :)
Andrea Howard@drandreahoward.bsky.social·2023-10-09T11:52:42.536Z#
“Stroke” is for me the word for an outline. I think geom_point uses stroke for the shapes that allow separate outline colours
Steve Haroz@steveharoz.com·2023-10-09T12:20:09.004Z#
I see border as a specific type of stroke. Specifically, it's the stroke around the edge of a shape. Stroke can also be within a shape, like for shapes 7-14.