我有数据
equip ballots freq %Undercounts
1 LEVER 427780 17016 3.98
2 OPTICAL 1436159 39090 2.72
3 PAPER 3454 113 3.27
4 PUNCH 823921 38462 4.67
我想在X轴上绘制设备。每个装备的选票应为100%。频率应该是条形的百分比,并表示为选票的百分比。
我尝试了barplot
和格子图。但我收到一些错误,似乎我的数据不符合格式。有人可以帮助我解决我可能遗失的问题。
感谢。