David,

Actually, I have used the example given in Ecdf help page, see below a part
of the script:

comparacao<-c(obs,simul[,,1],simul[,,2],simul[,,3],simul[,,4])
grupos<-c( rep('obs',length(obs)), rep('exp1',length(simul[,,1])),
rep('exp2',length(simul[,,2])), rep('exp3',length(simul[,,3])),
rep('exp4',length(simul[,,4])) )

par(lwd=2,cex.sub=1.7,cex.axis=1.5,cex.main=1.5,cex.lab=1.5)

Ecdf(comparacao,group=grupos,xlab='',ylab='',main='',sub=titulo,q=0.99,label.curves=list(keys=1:5),lty=1:5,lwd=2,subtitles=F)

It works very well, but I couldn't change the type of the line used for 0.99
quantile, specified by q=0.99 option in Ecdf function.

I'll try add this lines with abline.

Thanks for the help

Mateus


2009/8/3 David Winsemius <dwinsemius@comcast.net>

>
> On Aug 3, 2009, at 4:19 PM, Mateus Teixeira wrote:
>
>  Dear R users,
>>
>> I'm using Ecdf (Hmisc library) to plot four cdf in a same graphic. In this
>> graphic I also plot the 0.99 quantile for these cdf.
>>
>
> How did you do this? Experimenting with the example on hte Ecdf help page
> it appears that adding lines with abline works fairly well, despite this
> being a mixture of lattice and base graphics.
>
>  I successfully plot
>> cdfs using different types of line to distinguish them, but I can't
>> determine the type of lines showing 0.99 quantile.
>>
>> Is there a way to assign different line types for quantile lines in Ecdf
>> plot?
>>
>
> What do you mean by "quantile lines"?
>
>
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
>
>


-- 
Mateus da Silva Teixeira

Registered Linux User #466740

	[[alternative HTML version deleted]]


