0
我有一个数据集,看起来像这样:显示行,每类别值
Genre Variabelen Value
1 4am Comedown std_acc 0.253673983
2 4am Comedown std_val 0.230741321
3 4am Comedown std_energy 0.203915405
4 4am Comedown std_danceability 0.185097424
5 4am Comedown std_instrumentalness 0.32926114
6 4am Comedown std_speechiness 0.059602086
我想现在要做的是在x轴包含“variabelen创建每个类型的值的linegraph ”。所以传说应该包含流派。
对于使用以下行该即时通讯:
library(ggplot)
ggplot(data = df, aes(x=Variabelen, y=Value)) + geom_line(aes(colour=Genre))
然而,这给了我现在线及以下变暖:
geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?
在我去错在何处有什么想法?
你确定你没有使用geom_path()?我们无法访问您的数据,请使用dput() – MLavoie