0
在条形图值显示他们正在出现incorrectly.How纠正。
ggplot(data=df, aes(x=Demand_Supply,fill=time_slot),position = 'stack') +
geom_bar() + facet_wrap(~`Pickup.point`) +
geom_text(stat='count',aes(label=abs(..count..)))
ggplot(data = df,aes(x = Demand_Supply,fill = time_slot),position ='stack')+ geom_bar()+ facet_wrap(〜'Pickup.point')+ geom_text(stat ='count', aes(label = abs(.. count ..)),size = 3,hjust = 0.5,position = position_stack(vjust = 0.5)) –
它是正确的。 –
@chandrapalpanwarplease接受它作为答案或upvote,如果它值得。 –