r - “x”必须是数字
问题描述
我有以下文件:
$ head orthoset.cov
87.0
55.4
80.6
56.8
78.4
41.2
44.9
96.7
83.0
67.9
但是,我未能使用以下代码创建直方图:
> chol <- read.table("~/orthoset.cov")
> hist(chol,xlab = "Weight",col = "yellow",border = "blue")
Error in hist.default(chol, xlab = "Weight", col = "yellow", border = "blue") :
'x' must be numeric
我错过了什么?
先感谢您,
解决方案
推荐阅读
- android - 工作管理器依赖导致android项目中的dex合并问题
- r - ggplotly 不提供交互式人口金字塔
- reactjs - React Route 内容触发两次
- hadoop - 将本地数据从文件系统加载到 Hive 表
- gcc - 为 ARM 交叉编译 zlib
- java - 在下面的方法中创建的对象在哪里?
- cassandra - 如何在 cassandra 中存储 6 位精度双精度/浮点/十进制数?
- java - 循环尝试删除 Firebase 数据库上的帐户
- python - 在 Python 中使用 Selenium 在表类中搜索 span 标签
- php - 获取上下文类中的基本路径