Re: [R] help in function in R akin to macro in SAS

2010-04-06 Thread Thomas Lumley
On Tue, 6 Apr 2010, Stuart Luppescu wrote: On Tue, 2010-04-06 at 09:33 -0700, Changbin Du wrote: #plot function plotxyf<-function (data) { plot(data, type="mapping", labels=final$target, col=final$outcome+1,, main="Supervised: Mapping plot for data") Change this to: main=paste("Supervised: M

Re: [R] help in function in R akin to macro in SAS

2010-04-06 Thread Gang Liang
A small correction. On Tue, Apr 6, 2010 at 9:43 AM, Stuart Luppescu wrote: > On Tue, 2010-04-06 at 09:33 -0700, Changbin Du wrote: > > #plot function > > plotxyf<-function (data) { > > > > plot(data, type="mapping", labels=final$target, col=final$outcome+1,, > > main="Supervised: Mapping plot for

Re: [R] help in function in R akin to macro in SAS

2010-04-06 Thread Stuart Luppescu
On Tue, 2010-04-06 at 09:33 -0700, Changbin Du wrote: > #plot function > plotxyf<-function (data) { > > plot(data, type="mapping", labels=final$target, col=final$outcome+1,, > main="Supervised: Mapping plot for data") Change this to: main=paste("Supervised: Mapping plot for", data) > >

[R] help in function in R akin to macro in SAS

2010-04-06 Thread Changbin Du
Dear Whom it may concern, I need help to figure the "macro" function in R: I need to plot the different data sets by a plotxyf function, I want the title to be different for different data set. # get the data set final.xyf<- xyf(data=as.matrix(my.final), Y=classvec2classmat(final$outcome), xwe