Hi, The function Repmat under S allows to represent a matrix of data. Is there an equivalent function under R ? thanks for your reply Bruno -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 3 Jan 2002, Bruno Cutayar wrote:> The function Repmat under S allows to represent a matrix of data. > Is there an equivalent function under R ?Is there such a function in S? I get (latest version of S-PLUS, and an old one)> ?RepmatNo documentation for topic "Repmat" and I've never heard of it. If you told us which of the very many representations in the literature it is alleged to do, we might be able to help! -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I do not know 'Repmat' but 'image' makes an image out of a matrix. Hopin' it helps, Laurent Laurent Gautier CBS, Building 208, DTU PhD. Student D-2800 Lyngby,Denmark tel: +45 45 25 24 85 http://www.cbs.dtu.dk/laurent On Thu, 3 Jan 2002, Bruno Cutayar wrote:> Hi, > The function Repmat under S allows to represent a matrix of data. > Is there an equivalent function under R ? > > thanks for your reply > Bruno > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Another way to represent matrices is matplot. If you use the type="l" option, it plots parallel lines, one for each column. (So you need to t() the matrix if you want the rows.) You can also use lines() over and over, probably with apply() [but I haven't tried that since matplot does everything I need]. Another thing is plot.table(). You can convert the matrix to a table and use this. The result is very nice. Try also col=T for an option. Jon Baron -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
To the extent that this might be of some help, I did a search for repmat and found that it appears to be a Matlab function. More information is available at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/repmat.shtml?cmdna me=repmat I have not located any information from the Insightful web site or Statlib to indicate that this has been replicated in S, but I just may have missed it someplace. Hope this helps provide some guidance. Regards, Marc> > Hi, > > The function Repmat under S allows to represent a matrix of data. > > Is there an equivalent function under R ? > > > > thanks for your reply > > Bruno > >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard wrote:> Um, the repmat function in Matlab would seem to beabout matrix> *replication* and not representation...Out of curiosity, was this email dictated? Or does the above "um" serve as a sort of rhetorical flourish? At any rate, I find email stuttering not only uncouth but fantastically irritating as well. yours, Frederick Zoster __________________________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Having a bad day, Fred? The "um" is a preliminary gentle nudge to cushion the message. Just part of the camaraderie of R. --Ivan Frohne ----- Original Message ----- From: "Frederick Zoster" <fredzoster at yahoo.com> To: <R-help at stat.math.ethz.ch> Sent: Thursday, January 03, 2002 17:34 Subject: Re: [R] Graphical representation of a matrix ?> > Peter Dalgaard wrote: > > > Um, the repmat function in Matlab would seem to be > about matrix > > *replication* and not representation... > > Out of curiosity, was this email dictated? Or does the > above "um" serve as a sort of rhetorical flourish? At > any rate, I find email stuttering not only uncouth but > fantastically irritating as well. > > yours, > > Frederick Zoster > > > __________________________________________________ > > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-> r-help mailing list -- Readhttp://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 >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._