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")
> circ<-TOC_NI[order(TOC_NI$NI,decreasing=T),][1:4,]
> plot(NI~TOC,data=TOC_NI,col="blue", pch=16, xlim=c(0,4500000))
Points are plotted as a small circles in blue, you can make the points
bigger by let say cex=2
> abline(lm(NI~TOC,data=TOC_NI),col = "red",lwd=3)
red line is plotted according to linear model
> points(NI~TOC,data=TOC_NI,col='red',pch=1,size=3)
all points are newly plotted as red circles (and possibly overplot the
former ones). There is no size parameter for plot command, therefore it is
ommited.
see
?plot.default and ?par for available options.
You maybe want cex=3 to get those new points as bigger circles.
Regards
Petr
>
> Maybe the the Sourcefile will help to solve the prob?
> http://r.789695.n4.nabble.com/file/n4291954/TOC-NI.csv TOC-NI.csv
>
> Thank you so muich!
> GeO
>
>
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/colored-
> outliers-tp4282207p4291954.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [email protected] 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.
______________________________________________
[email protected] 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.