I want to have my label each of my bars (horizontally) from my legend.
I also want to move my value labels to the top of the graph instead of the bottom.
below is my code and a picture of the plot.
ggplot(data= AZD.melt,
aes(x = variable, y = value,
stratum = id,
alluvium = risk_factors_for_stroke_in_blacks
fill = risk_factors_for_stroke_in_blacks,
colour = id,
label = value)) +
geom_flow(stat = "alluvium", lode.guidance = "frontback",
color= "white")+
geom_stratum(color = "white", width 0.7) +
geom_text(position = position_stack(vjust= 0.5), colour = "white")