-2
我在网上搜索了2个多小时,找到了一种列表的条形图。我想将名称(my_list)作为x标签,并将列表元素的值作为它们的高度。但是我对R的不同语法感到困惑。请问任何人给我一个提示?!R:从命名列表中选择基本Barplot
barplot(unlist(my_list))
工程,但没有元素的x轴标签。
barplot(unlist(my_list))
得到:
Error in -0.01 * height : non-numeric argument to binary operator