[R] how to add these

casperyc casperyc at hotmail.co.uk
Wed Dec 8 21:24:34 CET 2010



Thomas Stewart wrote:
> 
> It isn't clear to me what you want to do.  Do you want the axes to show? 
> Do
> you want labels for the lines?  Do you want a legend?  What is your
> desired
> output?
> 
> -tgs
> 
> On Wed, Dec 8, 2010 at 2:42 PM, casperyc <casperyc at hotmail.co.uk> wrote:
> 
>>
>> Hi All,
>>
>> How do I add these axis labels?
>>
>> ###############################################
>> p=seq(0,1,length.out=500)
>> p=p[-c(1,length(p))]
>> g1=log(p/(1-p))
>> g2=qnorm(p)
>> g3=log(-log(1-p))
>> g4=-log(-log(p))
>> plot(p,g1,
>>        'n',ylim=c(-5,5),las=1,
>>        bty='n',
>>        xaxt='n',yaxt='n',
>>        xlab="",ylab=""
>> )
>> lines(p,g1,lty=1,col=1)
>> lines(p,g2,lty=1,col=2)
>> lines(p,g3,lty=1,col=3)
>> lines(p,g4,lty=1,col=4)
>>
>> ###############################################
>> Thanks!
>>
>> casper
>>
>> http://r.789695.n4.nabble.com/file/n3078908/123.jpeg 123.jpeg
>> --
>> View this message in context:
>> http://r.789695.n4.nabble.com/how-to-add-these-axis-label-tp3078908p3078908.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 


Hi,

I am sorry that I want clear enough.

I want the vertical axis and horizontal axis.
I dont know how to get them, because they are kind of "in the middle" of the
plot...
and the hortizontal axis has 'double' labels.

Thanks!

casper
-- 
View this message in context: http://r.789695.n4.nabble.com/how-to-add-these-tp3078908p3078997.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list