Skip to content
Prev 247385 / 398503 Next

Question about scatterplot in package car

Dear David,

scatterplot() isn't intended to produce parallel boxplots with a factor on
the RHS of the formula (though that's a reasonable feature request) but
rather, as the name implies, to make scatterplots. For boxplots with
labelled outliers, use the car function Boxplot(), as in Boxplot(income ~
type, data=Prestige). Note that you can use a data argument with both
scatterplot() and Boxplot(), and doing so has the advantage of providing
point labels from the row names of the data frame. See ?Boxplot and
?scatterplot (and the book with which the package is associated) for
details.

I hope this helps,
 John


--------------------------------
John Fox
Senator William McMaster
  Professor of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox