我正在嘗試繪制直方圖。我希望將 x 軸限制從 50% 設定為 60%。
tbl <- tibble(x = runif(n = 100, min = 53, max = 58))
ggplot(tbl,
aes(x = x))
geom_histogram(bins = 50)
theme_bw()
scale_x_continuous(labels = scales::percent_format(scale = 1,
limits = c(50, 60)))
uj5u.com熱心網友回復:
您的限制不在正確的位置:
scale_x_continuous(labels = scales::percent_format(scale = 1),
limits = c(50, 60))
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/476647.html
上一篇:如何使用javascript將標簽控制元件文本存盤到文本框控制元件值中
下一篇:函式內的ggplot不能完全作業
