Thank you John, I will try that one. Bob,
________________________________________ From: John Fox [j...@mcmaster.ca] Sent: Thursday, March 19, 2015 2:08 PM To: Pagliari, Roberto Cc: r-help@r-project.org Subject: RE: [R] remove outliers with scatterplotMatrix Dear Roberto, This is, I assume, the scatterplotMatrix() function in the car package. There is no option for automatically removing outliers, although the various options for labeling points should help you identify them. If you want to remove outliers once identified, you could use the subset argument to scatterplotMatrix(), much as you would for a statistical modeling function, as long as the variables in the scatterplot matrix are specified in a formula. For example, scatterplotMatrix(~ income + education + prestige, data=Duncan, id.n=2) identifies the two most noteworthy points in each panel (as explained in ?scatterplotMatrix), while scatterplotMatrix(~ income + education + prestige, data=Duncan, subset= -c(6, 16)) removes cases 6 and 16. I hope this helps, John ------------------------------------------------------- John Fox, Professor McMaster University Hamilton, Ontario, Canada http://socserv.mcmaster.ca/jfox/ > -----Original Message----- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Pagliari, > Roberto > Sent: March-19-15 11:07 AM > To: r-help@r-project.org > Subject: [R] remove outliers with scatterplotMatrix > > outliers may sometimes make a scatter plot less understandable. > > when using scatterplotMatrix, is it possible to automatically remove them? > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.