r - 如何在 R 中的直方图上垂直居中数字?
问题描述
如何在列上居中数字?
bar <- barplot(VADeaths)
text(rep(bar,each=nrow(VADeaths)),as.vector(apply(VADeaths,2,cumsum)),
labels=as.vector(apply(VADeaths,2,cumsum)),
pos=1,cex=1,adj = c(0,0),col="orange",offset = 0.2)
这是它现在的样子:
我需要让它像这里一样:
我该怎么做呢?谢谢!
解决方案
推荐阅读
- javascript - Sequelize 在使用 .then() 查询后无法分配数据
- python - 在 Python 中将字符串数据结构从视频帧编码为 Unicode
- java - 如何让线程在通知时最后唤醒?
- laravel - laravel 将查询作为参数传递 'Closure' 的序列化是不允许的
- c# - unity,resources.loadall() 返回空对象
- excel - 添加唯一值
- macos - 在 Mac OS 中延迟隐藏自动滚动条
- python - 具有相同条件的多个 while 循环会依次启动还是同时启动?
- tsql - SQL Server:优化器智能,在 UNION ALL 查询中的同一个表上有多个索引
- r - 提取“。”之前的字符 在包含两个“。”的字符串中