below is an example of a dataframe..essentially it is the number of patients that need to be seen in a practice after an intervention (phonecall). One cohort (the larger one) was our comparator (no phonecall took place) and the second cohort (the smaller one),our intevention (a phonecall to patient) was invovled.
I can get the graphs I require based on the folllowing code
tata %>%
gather(key = "success", value = value, -status1) %>%
ggplot(aes(y = value, x = status1, fill = success)) +
geom_bar(position = "dodge", stat = "identity") + scale_fill_manual(values = c("green", "red"))
However, I would much rather the Y axis was displayed in percentages rather than the actual value, as this would clearly be more meaningful. Can anyone help please?
increase the font size of the tick values on the Y axis and .i.e. the percentage
can the space between the paired graphs be increased..i.e. between 'no phone call' and 'phone call' ..just to make it look neater
can the 'Yes' be grouped together rather than the 'phonecall' Vs 'nophonecall' as on second thoughts, it appears to better represent the difference caused by the intervention (i.e. 12% Vs 20% next to each other).
Any chance you can introduce more Y axis ticks ? I want it to go to till 100% as one of the values of > 75% ? I'm not able to do this for some reason using coord_cartesian