65
unit(tic_pos.c, "mm") : 'x' and 'units' must have length > 0.
はなぜあるのでしょうか?
p4<-ggplot(BCIcor,aes(x=cor))+geom_histogram(binwidth = 0.2)
これは黒い棒グラフを示した。しかし、私はp
によるデータプロットをカラフルにするためにグループに望んでいたとき、私はfill=p
を追加し、
p4<-ggplot(BCIcor,aes(x=cor,fill=p))+geom_histogram(binwidth = 0.2)
のIは、次のように得た:
error :"unit(tic_pos.c, "mm") : 'x' and 'units' must have length > 0".
何が悪いです?
データフレームである:
cor pvalue p
1 0.87882370 0.049710 2
2 -0.83041880 0.081660 1
3 -0.12989750 0.835100 1
4 -0.75309860 0.141700 1
5 -0.88553450 0.045680 2
ありがとうDidzis! – Jada