我的图以 e 表示法的形式显示 y 轴上的值。我应该使用哪个命令来获取数字形式的值。文件中使用的值是数字形式吗?
谢谢
要在整个 R 会话中设置科学记数法的使用,您可以使用scipen
选项。从文档(?options
):
‘scipen’: integer. A penalty to be applied when deciding to print
numeric values in fixed or exponential notation. Positive
values bias towards fixed and negative towards scientific
notation: fixed notation will be preferred unless it is more
than ‘scipen’ digits wider.
所以本质上这个值决定了科学记数法被触发的可能性有多大。因此,为了防止科学记数法,只需使用一个大的正值,例如999
:
options(scipen=999)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)