0
everyone。我真的讀取兩個數值向量從文件,我想使用的GGPLOT2一個圖形繪製2個ecdfs,但我似乎忽視:使用ggplot2在R中繪製兩個或更多ecdfs
>exp = rnorm(100)
>cont = rnorm(100)
> ggplot() + stat_ecdf(data = exp) + stat_ecdf(data = cont)
Error: ggplot2 doesn't know how to deal with data of class numeric
如何繪製在一起,他們沒有得到這樣的錯誤呢?
謝謝,它解決了! – Genessis
@ user3570029如果這個答案對您有幫助,請考慮接受它。 –