我有csv格式的数据,如下所示:
Sample_id,A1,A2,A3,B1,B2,B3,C1,C2,C3,C4,C5
Pat1,0,0,0,0.064516129,0.919354839,0.056451613,0.040322581,0,0.14516129,0.14516129,0
Pat2,0,0,0,0,0.459677419,0,0.008064516,0,0.016129032,0.241935484,0
Pat2,0,0,0,0.967741935,1,0,0,0,0,0,0
Pat2,0,0,0,0.951612903,1.483870968,0,0,0,0,0,0
Pat2,0,0,0,0.064516129,0.838709677,0,0,0,0,0,0
我想为它制作成组的条形图,以使第1列(即Pat1,Pat2 ..)在x轴上,而各个值在y轴上绘制。 我在线上有一个解决方案,我们必须将每一列写入数据帧的不同向量中,但是我的问题是我的文件相对较大。有人可以帮我吗