[R] scatterplots in car package

John Fox jfox at mcmaster.ca
Tue Feb 23 13:29:57 CET 2010


Dear Robert,

scatterplot() uses layout() to display the scatterplot along with the marginal boxplots, and can't be used with par("mfrow"); scatterplot is meant primarily for data analysis, not really for making presentation graphs.

Regards,
 John


On Tue, 23 Feb 2010 03:40:39 -0800 (PST)
 threshold <r.kozarski at gmail.com> wrote:
> 
> Hi, using scatterplot in 'car' package. 
> There are 4 plots to be pictured together (ignore data used):
> 
> library(car)
> par(mfrow=c(3,1))
> ts.plot(rnorm(100))
> ts.plot(rnorm(100))
> scatterplot(rnorm(100),rnorm(100),boxplot="",smooth=T) # scatter with
> non-parametric fit
> 
> problem is that the last one comes 'always' separate. 
> 
> Is there any way to solve it?? of course can use
> fit=lm(rnorm(100)~rnorm(100)); plot(...);abline(fit), but I want to keep the
> non-paramteric fit.
> 
> best regards, robert
> 
>  
> 
> -- 
> View this message in context: http://n4.nabble.com/scatterplots-in-car-package-tp1565791p1565791.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org 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.

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



More information about the R-help mailing list