Nothing
dist.func<-function(dendat,xepsi=0,yepsi=0,col="black",type="distr",
log="y",cex.axis=1,dendat2=NULL,dendat3=NULL,col2="red",col3="blue",
pch2=20,pch3=20,split=median(dendat),xlim=NULL,xaxt="s",yaxt="s")
{
n<-length(dendat)
if (type=="distr"){
plot(x="",y="",
xlim=c(min(dendat)-xepsi,max(dendat)+xepsi), ylim=c(0-yepsi,1+yepsi),
xlab="",ylab="",cex.axis=cex.axis)
ycur<-0
ordi<-order(dendat)
dendatord<-dendat[ordi]
for(i in 1:(n-1)){
segments(dendatord[i],ycur,dendatord[i],ycur+1/n,col=col)
segments(dendatord[i],ycur+1/n,dendatord[i+1],ycur+1/n,col=col)
ycur<-ycur+1/n
}
segments(dendatord[n],ycur,dendatord[n],ycur+1/n,col=col)
segments(dendatord[n],ycur+1/n,max(dendat)+xepsi,ycur+1/n,col=col)
}
else if ((type=="right.tail") || (type=="left.tail")){
if (type=="right.tail"){
redu.ind<-(dendat>split)
dendat.redu<-dendat[redu.ind]
}
else{
redu.ind<-(dendat<split)
dendat.redu<--dendat[redu.ind]
}
ordi<-order(dendat.redu)
dendat.ord<-dendat.redu[ordi]
nredu<-length(dendat.redu)
level<-seq(nredu,1)
if (type=="right.tail")
plot(dendat.ord,level,log=log,xlab="",ylab="",cex.axis=cex.axis,xlim=xlim)
else
plot(-dendat.ord,level,log=log,xlab="",ylab="",cex.axis=cex.axis,xlim=xlim,
xaxt=xaxt,yaxt=yaxt)
#ordi<-order(dendat)
#dendat.ord<-dendat[ordi]
#medi.ind<-floor(n/2)
#dendat.redu<-dendat.ord[medi.ind:n]
#nredu<-length(dendat.redu)
#level<-seq(nredu,1)
#plot(dendat.redu,level,log="y",xlab="",ylab="")
if (!is.null(dendat2)){
if (type=="right.tail"){
redu.ind<-(dendat2>split)
dendat.redu<-dendat2[redu.ind]
}
else{
redu.ind<-(dendat2<split)
dendat.redu<--dendat2[redu.ind]
}
ordi<-order(dendat.redu)
dendat.ord<-dendat.redu[ordi]
nredu<-length(dendat.redu)
level<-seq(nredu,1)
if (type=="right.tail")
matplot(dendat.ord,level,log=log,xlab="",ylab="",cex.axis=cex.axis,
add=TRUE,col=col2,pch=pch2)
else
matplot(-dendat.ord,level,log=log,xlab="",ylab="",cex.axis=cex.axis,
add=TRUE,col=col2,pch=pch2)
}
if (!is.null(dendat3)){
if (type=="right.tail"){
redu.ind<-(dendat3>split)
dendat.redu<-dendat3[redu.ind]
}
else{
redu.ind<-(dendat3<split)
dendat.redu<--dendat3[redu.ind]
}
ordi<-order(dendat.redu)
dendat.ord<-dendat.redu[ordi]
nredu<-length(dendat.redu)
level<-seq(nredu,1)
if (type=="right.tail")
matplot(dendat.ord,level,log=log,xlab="",ylab="",cex.axis=cex.axis,
add=TRUE,col=col3,pch=pch3)
else
matplot(-dendat.ord,level,log=log,xlab="",ylab="",cex.axis=cex.axis,
add=TRUE,col=col3,pch=pch3)
}
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.