I want to color the border of the bar graph in ggplot2.
The following script is an example.
As you can see, the orange border overlaps with the blue border. Is there any way to avoid this behavior and color the border within the graph?
library(tidyverse)
dat <- tibble(
dx = c("D+","D+","D-","D-"),
test = c("T+","T-","T+","T-"),
num = c(40,80,100,800)
)
ggplot(dat) +
geom_col(aes(x = dx, y = num, fill = dx, color = test),
size = 3) +
scale_color_manual(values = c("orange","blue"))


