Re: [R] problem with intToChar

From: Changbin Du <changbind_at_gmail.com>
Date: Tue, 01 Jun 2010 13:56:06 -0700

the intToChar function is in the package "R.oo"

I AM try to plot the SOM result, use the outcome.labels as labels in the following plot command.

outcome.xyf <- predict(final.xyf)$unit.prediction outcome.predict<- as.numeric(classmat2classvec(outcome.xyf))

?outcome.label<-intToChar(as.integer(outcome.predict))

?outcome.label<-LETTERS(outcome.predict)

plot(final.xyf, type="property", property=outcome.predict, labels=outcome.label, palette.name =rainbow, main="Supervised:Prediction ")

Thanks so much!

On Tue, Jun 1, 2010 at 1:50 PM, Erik Iverson <eriki_at_ccbr.umn.edu> wrote:

>
>
> Changbin Du wrote:
>
>> Hi, Dear R- community,
>>
>> I am use the intToChar function to convert the integers to letters. But
>> the
>> output is mess. Can you guys give some suggestions? Thanks!
>>
>>
> I suggest you tell us what you were expecting to happen, that is, what do
> you actually want? It looks like it's doing something reasonable based in
> its name, but I can't be sure since you don't say what package intToChar is
> located in.
>

-- 
Sincerely,
Changbin
--

Changbin Du
DOE Joint Genome Institute
Bldg 400 Rm 457
2800 Mitchell Dr
Walnut Creet, CA 94598
Phone: 925-927-2856

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_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.
Received on Tue 01 Jun 2010 - 20:59:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 Jun 2010 - 21:10:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive