search for: maxhx1

Displaying 1 result from an estimated 1 matches for "maxhx1".

Did you mean: maxhx
2012 Feb 24
1
Telling plot() the max y value to expect when plotting one distribution and then using lines() to add more distributions
...obability density function hx1<- dpearsonIV(x,m=mx[1],nu=nux[1],location=locationx[1],scale=scalex[1]) hx2<- dpearsonIV(x,m=mx[2],nu=nux[2],location=locationx[2],scale=scalex[2]) hx3<- dpearsonIV(x,m=mx[3],nu=nux[3],location=locationx[3],scale=scalex[3]) ##calculate max of each distribtion maxhx1<- max(hx1) maxhx2<- max(hx2) maxhx3<- max(hx3) maxhx<- max(hx1,hx2,hx3) maxhx1 maxhx2 maxhx3 maxhx if (maxhx1==maxhx) {plot(x, hx1 , type="l", lwd=2, col=colors[1], xlab="x value", ylab="Density", main="pt4") for (i in 2:3){ lines(x, dpearso...