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 <er...@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@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.

Reply via email to