、 で散布図 (複数グループ GRP) を作成しましIV=time
たDV=concentration
。(0.025,0.05,0.5,0.95,0.975)
分位点回帰曲線をプロットに追加したかったのです。
ちなみに、これは私が散布図を作成するために行ったことです。
attach(E) ## E is the name I gave to my data
## Change Group to factor so that may work with levels in the legend
Group<-as.character(Group)
Group<-as.factor(Group)
## Make the colored scatter-plot
mycolors = c('red','orange','green','cornflowerblue')
plot(Time,Concentration,main="Template",xlab="Time",ylab="Concentration",pch=18,col=mycolors[Group])
## This also works identically
## with(E,plot(Time,Concentration,col=mycolors[Group],main="Template",xlab="Time",ylab="Concentration",pch=18))
## Use identify to identify each point by group number (to check)
## identify(Time,Concentration,col=mycolors[Group],labels=Group)
## Press Esc or press Stop to stop identify function
## Create legend
## Use locator(n=1,type="o") to find the point to align top left of legend box
legend('topright',legend=levels(Group),col=mycolors,pch=18,title='Group')
ここで作成したデータは、より大きなデータの小さなサブセットであるため、長方形の双曲線として近似できるように見える場合があります。しかし、独立変数と従属変数の間の数学的関係をまだ呼び出したくありません。
nlrq
パッケージからが答えかもしれないと思いますquantreg
が、変数間の関係がわからないと関数の使い方がわかりません。
科学記事からこのグラフを見つけましたが、まったく同じ種類のグラフを作成したいと考えています。
繰り返しますが、あなたの助けに感謝します!
アップデート
Test.csv サンプル データが再現できないと指摘されました。これが私のデータのサンプルです。
library(evd)
qcbvnonpar(p=c(0.025,0.05,0.5,0.95,0.975),cbind(TAD,DV),epmar=T,plot=F,add=T)
qcbvnonpar::evd も試してみましたが、曲線があまり滑らかに見えません。