這可能是一個簡單的問題,但我無法找到解決方案。而不是點的情節線R
我有以下情節(我使用情節CI因爲我不能用情節()填充點)。
leg<-c("1","2","3","4","5","6","7","8")
Col.rar1<-c(rgb(1,0,0,0.7), rgb(0,0,1,0.7), rgb(0,1,1,0.7),rgb(0.6,0,0.8,0.7),rgb(1,0.8,0,0.7),rgb(0.4,0.5,0.6,0.7),rgb(0.2,0.3,0.2,0.7),rgb(1,0.3,0,0.7))
library(plotrix)
plotCI(test$size,test$Mean,
pch=c(21), pt.bg=Col.rar1,xlab="",ylab="", ui=test$Mean,li= test$Mean)
legend(4200,400,legend=leg,pch=c(21),pt.bg=Col.rar1, bty="n", cex=1)
我要創造同樣的效果,但用線,而不是點(繼續行)
什麼建議嗎?
與情節我會嘗試:一個< - seq(1:10); b <-a^2; plot(a,b,type ='l')我不知道type ='l'是否適用於您正在使用的軟件包。 –
你的例子中的'test'是什麼? –
測試是原始數據表(太大而無法重現) – Francisco