I have the following data: [example from R graphics Cookbook]
Cultivar Date Weight sd n se big
c39 d16 3.18 0.9566144 10 0.30250803
Another possibility using scale_alpha_discrete
, where the range
argument may be used to set your desired alpha
values for each level of 'big'.
ggplot(data = cabbage_exp, aes(x = Date, y = Weight, fill = Cultivar, alpha = big)) +
geom_bar(position = "dodge", stat = "identity") +
scale_alpha_discrete(range = c(0.35, 0.9))