[R] Attaching marginal summary plots to the main matrix plot

Wiener, Matthew matthew_wiener at merck.com
Mon Aug 12 16:10:46 CEST 2002


Take a look at the manual page for "layout".  The final example does pretty
much what you're asking about (with a scatterplot and histograms, but the
idea should be the same).

Hope this helps,

Matthew Wiener
Applied Computer Science & Mathematics Dept.
Merck Research Labs
Rahway, NJ 07090
732-594-5303 

-----Original Message-----
From: Adaikalavan Ramasamy [mailto:ramasamy at stats.ox.ac.uk]
Sent: Monday, August 12, 2002 5:27 AM
To: r-help at stat.math.ethz.ch
Subject: [R] Attaching marginal summary plots to the main matrix plot


Dear helplist, I am trying to visualise a datamatrix together with its
marginal densities.
Suppose dat <- matrix( rnorm(1000), nrow=25 )

 I can the main visual plot using image, levelplot etc. But how do I attach
the plots for rows sums and column sums to the top/bottom and right hand
side of the original plot ?

 The only way I can think of is by using par(mfrow=c(2,2)) command but the
result is not desirable. Is there are useful command(or website advising
how) to do this ? If succesful I am thinking of affixing the boxplots by row
and columns as well. I have gone through the lattice help but am still
confused. Thank you.

-Adai
PS: I am resending this as I haven't received a reply.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._


------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message.  If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it.

==============================================================================

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list