[R] draw a box at 10% lower and upper in scatter plot

Peter Alspach Peter.Alspach at plantandfood.co.nz
Wed Dec 2 02:34:43 CET 2009


Tena koe Roslina

Check:

?rect
?quantile

Perhaps those two functions will give you what you want.

HTH ....

Peter Alspach

> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of Roslina Zakaria
> Sent: Wednesday, 2 December 2009 12:24 p.m.
> To: r-help at r-project.org
> Subject: [R] draw a box at 10% lower and upper in scatter plot
> 
> 
> Hi,
>  
> I would like to draw a box at each corner of lower 10% and 
> upper 10% in the scatter plot on(0,1)*(0,1)  to indicate the 
> lower and upper tail.  I hope somebody can help me.
>  
> Here is my code:
> ## scatter plot
> plot(hume_uni[,2],beec_uni[,2], pch=19, xlab="Hume_uni", 
> ylab="Beec_uni", col= "blue") title(main="Scatter plot of 
> uniformised data of Hume and Beechworth", font.main= 4) 
> abline(lm(hume_uni[,2]~beec_uni[,2]), col= "red").
>  
> Thank you so much fro any help given.
> 
> 
> 
> 
>       
> 	[[alternative HTML version deleted]]
> 
> 




More information about the R-help mailing list