[R] Combined plot: Scatter + density plot

Liviu Andronic landronimirc at gmail.com
Tue Sep 21 16:11:52 CEST 2010


On Tue, Sep 21, 2010 at 8:34 AM, Ralf B <ralf.bierig at gmail.com> wrote:
> in order to save space for a publication, it would be nice to have a
> combined scatter and density plot similar to what is shows on
>
Not quite the same thing, but I like the scatterplots in Rcmdr, which
feature boxplots instead of density graphs:
require(car)
data(iris)
scatterplot(Petal.Width~Sepal.Length, reg.line=lm, smooth=TRUE, spread=TRUE,
   boxplots='xy', span=0.5, data=iris)


Regards
Liviu



More information about the R-help mailing list