A small correction.

On Tue, Apr 6, 2010 at 9:43 AM, Stuart Luppescu <slu@ccsr.uchicago.edu>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: Mapping plot for", data)
>

You might want to introduce a new variable, such data_name, then use (data
field will expand here)

main=paste("Supervised: Mapping plot for", data_name)

Or get the argument name somehow inside the function...

>
> >                                       }
> >
> >
> > #use the plotxyf function.
> > plotxyf(final.xyf)
>
> BTW, I think it's better not to use "data" as a function parameter,
> since it has reserved use in the language.
>
> --
> Stuart Luppescu <slu@ccsr.uchicago.edu>
> University of Chicago
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

