我创建了一个散点图(多组GRP),其中
顺便说一下,这是我创建散点图的方法:
因为我在这里创建的数据是我更大数据集的一个小子集,所以它看起来可以近似为一个矩形双曲线。但我不想现在就称呼我的自变量和因变量之间的数学关系。
我认为来自
我从一篇科学文章中找到了这张图,并且我想做完全相同类型的图表:
再次感谢您的帮助!
更新 Test.csv 有人指出我的样本数据无法再现。这是我的一些数据样本。
我也尝试了qcbvnonpar::evd,但曲线似乎不太平滑。
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')
因为我在这里创建的数据是我更大数据集的一个小子集,所以它看起来可以近似为一个矩形双曲线。但我不想现在就称呼我的自变量和因变量之间的数学关系。
我认为来自
quantreg
包的nlrq
可能是答案,但我不知道如何在不知道变量之间关系的情况下使用该函数。我从一篇科学文章中找到了这张图,并且我想做完全相同类型的图表:
![Goal](https://istack.dev59.com/L82uF.webp)
更新 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,但曲线似乎不太平滑。