我在R的ggplot2中制作了一个堆叠的barplot:
ggplot(Count_dataframe_melt,aes(x = as.factor(variable),y = value,fill = fill)) +
geom_bar(stat = "identity",position="fill")+ scale_y_continuous(name = "Y-axis",labels = scales::percent)
我想像这样可视化堆叠条形图的顶部:
我到处都是,不知道该怎么做。有人知道吗?