我有一个情节,y轴以百分比转换;我希望把它限制为只显示高百分比(从50%到100%),但它不工作:ggplot - y ax限制当标签=标签
ggplot(myData,aes(x=A_factor, y=some_numeric_data, fill=factor(Another_factor))) +
geom_bar(position = position_fill(reverse = TRUE),stat = "identity", color="white") +
scale_y_continuous(labels = scales::percent, limits=c(50,100))
我还用标签= percent_format尝试。
谢谢。
欢迎来到StackOverflow!请阅读关于[如何提出一个好问题](http://stackoverflow.com/help/how-to-ask)以及如何给出[可重现的示例]的信息(http://stackoverflow.com/questions/ 5963269)。这会让别人更容易帮助你 – Axeman