r - 我在 ggplot2 中的图形在 y 轴上包含一个“e”字符
问题描述
y轴上的“e”是什么意思?
ggplot(econdata, aes(x = Country, y = GDP_nom)) +
geom_bar(stat='identity', fill = "forest green") +
ylab("GDP (nominal)")
解决方案
e
代表,10^
表示 1.5e7 = 1.5*10^7 = 15'000'000。这个“e 表示法”相当标准,是科学记数法的编程版本(有 10 次幂的东西,请参阅https://en.wikipedia.org/wiki/Scientific_notation)。
并不是说您可以使用此表示法定义变量。例如 100 万次写入x=1e6
推荐阅读
- sql - 将值平均分成 12 个连续的月份 (SQL Server)
- varnish - Varnish script for warming cache
- c# - What is the easiest way to get the latest value from an Observable in C#
- spring - Why does basicReject does not work with Apache Qpid?
- c# - How to correctly instantiate a spark session with dotnet spark?
- sql-server - SQL Server - 从触发器名称未知的表中删除所有触发器
- javascript - 需要帮助修复我的康威生命游戏代码
- c# - 从 .NET Core 2.2 迁移到 3.0-preview-9 后,模型绑定停止工作
- python - How to iterate an arbitrary function using vectorisation
- c# - How to make a link expire after click