我有一個情節,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