Thank you so much - now it works!
Tanks for your patience with me!
GeO
--
View this message in context:
http://r.789695.n4.nabble.com/colored-outliers-tp4282207p4315743.html
Sent from the R help mailing list archive at Nabble.com.
__
Dear Petr and Justin,
my problem ist, that I only want to have the 4 highest values for Ni as a
red point or with a red circle. The other points should not be modificated.
In your proposals always all points get a red circle or a red point not only
the 4 highest Ni values!
I hope you could
TOC_NI-read.csv2(C:/Users/hilliges/Desktop/Master/Daten/Statistik/TOC-NI.csv,
sep=;, dec=,, encoding=UTF-8)
circ-TOC_NI[order(TOC_NI$NI,decreasing=T),][1:4,]
plot(NI~TOC,data=TOC_NI,col=blue, pch=16, xlim=c(0,450))
abline(lm(NI~TOC,data=TOC_NI),col = red,lwd=3)
Hi Justin,
it still does not work.
All points become red.
I use this skript with your modifications:
TOC_NI-read.csv2(C:/Users/hilliges/Desktop/Master/Daten/Statistik/TOC-NI.csv,
sep=;, dec=,, encoding=UTF-8)
circ-TOC_NI[order(TOC_NI$NI,decreasing=T),][1:4,]
plot(NI~TOC,data=TOC_NI,col=blue,
Hi
what do you want to achieve?
Hi Justin,
it still does not work.
All points become red.
I use this skript with your modifications:
TOC_NI-read.csv2(C:/Users/hilliges/Desktop/Master/Daten/Statistik/TOC-NI.csv,
sep=;, dec=,, encoding=UTF-8)
Hi @ all,
I have question how to mark significant outliers in R.
This is my very simple script to plot a regression:
TOC_NI-read.csv2(C:/Users/XYZ/Desktop/Master/Daten/Statistik/TOC-NI.csv,
sep=;, dec=,, encoding=UTF-8)
plot(NI~TOC,data=TOC_NI,col=blue, pch=16, xlim=c(0,450))
# find top 4 points
circ
-
TOC_NI[order(TOC_NI$NI,decreasing=T),][1:4,]TOC_NI[order(TOC_NI$NI,decreasing=T),][1:4,]
# add them to your plot!
plot(NI~TOC,data=TOC_NI,col=blue, pch=16, xlim=c(0,450))
abline(lm(NI~TOC,data=TOC_NI),col = red,lwd=3)
Hi Justin,
thanks a lot for your quick answer.
If I use your code, all points become red.
How do you include the sorted and separated four values into the points
argument?
The variable in your script is called circ but this is not fronted up
anymore.
Here the script again:
woops! see inline.
Hope that helps, and enjoy R.
Justin
On Tue, Jan 10, 2012 at 8:40 AM, Geophagus
falk.hilli...@twain-systems.comwrote:
Hi Justin,
thanks a lot for your quick answer.
If I use your code, all points become red.
How do you include the sorted and separated four values into
9 matches
Mail list logo