我将数据变成一个好的数字时遇到了问题。我已经将它变成了长形式,现在它看起来像这样:
set names 'utf-8'
代码:
Group ID variable value
1 AD TAS1R2 -0.000833344
1 FB TAS1R2 -0.073365073
1 KG TAS1R2 0.415858441
1 SK TAS1R2 2.528440629
1 TF TAS1R2 0.187186572
1 BO TAS1R2 0.078468279
1 NR TAS1R2 -0.177461374
1 RS TAS1R2 0.885323044
1 SL TAS1R2 -0.058843513
1 SiKo TAS1R2 0.165354200
2 AD TAS1R2 0.040824344
2 FB TAS1R2 0.159074753
2 KG TAS1R2 0.228949916
2 SK TAS1R2 0.261097901
2 TF TAS1R2 -0.173072190
2 BO TAS1R2 0.025892073
2 NR TAS1R2 -0.039772329
2 RS TAS1R2 1.213214193
2 SL TAS1R2 -0.037842870
2 SiKo TAS1R2 9.609456965
3 AD TAS1R2 0.006761916
3 FB TAS1R2 0.087384138
3 KG TAS1R2 2.018923012
3 SK TAS1R2 1.735388837
3 TF TAS1R2 0.754398704
当我尝试绘制它时,我收到警告:
cols <- colnames(df[3:9])
d <- melt(df, id.vars= c("Group", "ID"), measure.vars = cols)
geom_path:每组只包含一个观察。你需要吗? 调整群体审美?
我想用线连接组间变量的方法。用正确的点和误差条正确地描绘了它们,但是当我做“d”或者我错过了一个告诉R如何连接点的论据时,我似乎做错了。有任何想法吗?非常感谢帮助!