Closed
Description
I think it'd be an improvement if polygons were drawn, so that the outline does not exceed the value that it represents.
This would:
- visually represent the data most accurately
- enable polygons to be positioned next to each other without outlines ever over-lapping
Maybe there are some circumstances I could imagine where the previous behaviour is what is wanted by the user, so maybe they could revert to this behaviour if desired (e.g. outline_position = c("inside", "centre")
).
But I think it should default to representing the data in the most visually accurate way as described above.
Example below in an exaggerated way to demonstrate what I'm talking about
library(tidyverse, quietly = TRUE)
#> Warning: package 'ggplot2' was built under R version 4.4.1
library(palmerpenguins, quietly = TRUE)
tibble(x = letters[1:3], y = 1:3) |>
ggplot(aes(x = 1, y = y, colour = x)) +
geom_col(position = "dodge", linewidth = 10, fill = NA) +
geom_hline(yintercept = 1:3) +
geom_vline(xintercept = seq(0.55, 1.45, (1.45-0.55)/3))
Created on 2024-07-12 with reprex v2.1.0
Metadata
Metadata
Assignees
Labels
No labels