【发布时间】:2021-04-28 22:49:06
【问题描述】:
我有以下数据,我想制作一个分组条形图,其中显示按位置分组的 total_deaths_per_million 和 total_tests_per_thousand
location total_deaths_per_million total_tests_per_thousand
<chr> <dbl> <dbl>
1 Albania 617. 150.
2 Denmark 407. 2818.
3 Germany 837. 524.
4 Russia 578. 756.
每次我使用 barplot 时,它都会说“'height' 必须是向量或矩阵”
【问题讨论】:
-
您确实需要提供您的实际代码,而不是对其的描述。还要为您的数据提供
dput(),而不是提供无法轻松剪切并粘贴到 R 中的表格。