Thanks for your quick answer and sorry for not providing an example before.
Please find below the data example with my code.
df <- data.frame (company_size = c("VSC", "VSC", "VSC", "SC", "SC", "SC", "MC", "MC", "MC", "LC", "LC", "LC"),
variable = c("Trading", "Trading", "Trading", "Trading", "Manufacturing", "Manufacturing", "Manufacturing", "Manufacturing", "Services", "Services", "Services", "Services"),
value = c("40.8", "11.8", "7.5", "4.5", "35.7", "12.9", "8.4", "5.2", "41.3", "10.2", "8.4", "3.7"))
ggplot(average_taxgain_reshaped) +
geom_col(aes(x=reorder(company_size, -value),
y = value,
fill = variable),
position = "dodge") +
geom_text(aes(y = value, label = value), vjust = 1.5) +
ylab("") +
xlab("") +
scale_fill_manual(values = c(Trading = "salmon3",
Manufacturing = "navajowhite1",
Services = "palegreen3"),
name = "Firm Type") +
theme_light()