Skip to content
Prev 22952 / 398502 Next

(CAR) Scatterplot and problems (?) with abline

Dear Joel,

To draw marginal boxplots around the scatterplot, the scatterplot function 
in car sets some plotting parameters, then resets these to their previous 
value when the function exits, making it impossible to add to the plot. 
This behaviour is intentional, but I agree that it can be problematic.

An immediate fix is to comment out the command
   on.exit(par(mar = mar, mfcol = mfcol))
in scatterplot.default. If you do this, be aware that these plotting 
parameters will be changed for the current graphics device.

A more permanent solution is to add an argument such as reset.par 
(defaulting to FALSE) to the function, which I'll do in the next version of 
car.

Thanks for bringing the problem to my attention,
  John
At 01:26 PM 8/26/2002 -0400, Joel Kincaid wrote:
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._