gpt4 book ai didi

r - 避免科学记数法 x 轴 ggplot

转载 作者:行者123 更新时间:2023-12-04 16:04:02 24 4
gpt4 key购买 nike

这个:

ggplot(Data, aes(x = Bla), bins = 30, labels = TRUE, format(x, scientific = FALSE)) +
geom_histogram()

不起作用。我想取消科学记数法(例如 1.0e+07)。有任何想法吗?谢谢!

最佳答案

您可以使用 options(scipen = 999)在你绘图之前。

这将在一般情况下禁用科学记数法,而不仅仅是在您的 x 轴中。

关于r - 避免科学记数法 x 轴 ggplot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52758313/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com