Roslina Zakaria
2009-Dec-01 23:24 UTC
[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]]
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]] > >