Hallo, I would like to add the marginal distributions along the X and the Y axis to a scatter plot. Can anybody help me, please? Thank you, Paolo -- Paolo Bulla Istituto di Metodi Quantitativi Universit?? "L. Bocconi" viale Isonzo 25 20136 Milano paolo.bulla at unibocconi.it
See example(layout). Andy> From: Paolo Bulla > > Hallo, > > I would like to add the marginal distributions along the X > and the Y axis to a > scatter plot. > Can anybody help me, please? > > Thank you, > Paolo > -- > Paolo Bulla > > Istituto di Metodi Quantitativi > Universit?? "L. Bocconi" > viale Isonzo 25 > 20136 Milano > paolo.bulla at unibocconi.it > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >
On Mon, 2004-10-04 at 08:33, Paolo Bulla wrote:> Hallo, > > I would like to add the marginal distributions along the X and the Y axis to a > scatter plot. > Can anybody help me, please? > > Thank you, > PaoloSee the last example in ?layout HTH, Marc Schwartz
Paolo Bulla wrote:>Hallo, > >I would like to add the marginal distributions along the X and the Y axis to a >scatter plot. >Can anybody help me, please? > >Thank you, > Paolo > >The simplest thing you can do is like plot(x, y) rug(x, side=1, col="red") rug(y, side=2, col="red") or if there are many coincident x (y) values rug(jitter(x), side=1, col="red") rug(jitter(y), side=2, col="red") Kjetil -- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra
Dear Paolo, The scatterplot() function in the car package can show marginal boxplots. I hope this helps, John On Mon, 4 Oct 2004 15:33:26 +0200 Paolo Bulla <paolo.bulla at unibocconi.it> wrote:> > Hallo, > > I would like to add the marginal distributions along the X and the Y > axis to a > scatter plot. > Can anybody help me, please? > > Thank you, > Paolo > -- > Paolo Bulla > > Istituto di Metodi Quantitativi > Universit?? "L. Bocconi" > viale Isonzo 25 > 20136 Milano > paolo.bulla at unibocconi.it > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html-------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario, Canada http://socserv.mcmaster.ca/jfox/