Hi,
I was trying to generate a bar graph through ggplot but I am unable to adjust the scales.
My data difference between two groups are very big so the bar for the smaller count group is very small, almost invisible. so how should I adjust the scales of Y axis so that it is visit. if there is any scope to add zoom bar on scale to drag the bar in ggplot.
How to add labels on the top of the bar in bar graph.
Code and the data has been attached.
Regards,
Arunabha
Query_detail_Rave2 %>% ggplot(aes(fill = Query_Type, x= Marking Group, y= Query_Count), height = 50, width = 200) +
geom_bar(position= position_dodge(), stat="identity", width = 0.5) + coord_cartesian(ylim = c(0, 500)) +
theme(axis.text.x = element_text(angle = 90, size = 7)) +
geom_text(aes(label = Query_Count), vjust = 1.5, size=3) +
theme(plot.title = element_text(hjust=0.5)) + ylab('Number of Query') +
ggtitle("Number of Query per group")