[R] symbol

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Tue Jan 28 17:25:07 CET 2003


Sorry, misread the question...

Sundar Dorai-Raj wrote:
> use text instead:
> 
> plot(x, y, type = "n")
> text(x, y, labels = class.label)
> 
> Regards,
> Sundar
> 
> Luis Silva wrote:
> 
>> Ok, this works. But I have this problem. I have a loop to make each 
>> plot. Like this:
>>
>> plot(class 1, pch='1',...)
>> for j (in 2:n)
>> points(class 2, pch='j',...)
>> ...
>>
>> of course pch='j' doesn't work. It generates other symbols. I accept 
>> also different colors instead of numbers
>>
>>
>> } } try this:
>> } } x<- rnorm(100)
>> } plot(x, pch='1')
>> } } huan
>> } } } } Internet
>> } lm.silva at sapo.pt@stat.math.ethz.ch - 01/28/2003 03:42
>> } PM
>> } } } Sent by:    r-help-admin at stat.math.ethz.ch
>> } } To:    r-help
>> } } cc:
>> } } } Subject:    [R] symbol
>> } } } Dear R helpers
>> } } I would like to make a plot where the symbols were
>> } the numbers
>> } of the corresponding classes, i.e, samples of class 1
>> } would the
>> } symbol 1, samples of class 2 would have symbol
>> } 2,....
>> } } Is this possible?
>> } } Thank you
>> } } Luis
>> } --
>> } Kit SAPO.ADSL.PT Apenas 50 €.
>> } Adira já em http://www.sapo.pt/kitadsl
>> } } ______________________________________________
>> } R-help at stat.math.ethz.ch mailing list
>> }
>> } http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>> } } } } } } } This message and any attachments (the "message") is
>> } intended solely for the addressees and is
>> } confidential. } If you receive this message in error, please delete
>> } it and } immediately notify the sender. Any use not in accord
>> } with } its purpose, any dissemination or disclosure, either
>> } whole } or partial, is prohibited except formal approval. The
>> } internet
>> } can not guarantee the integrity of this message. } BNP PARIBAS (and 
>> its subsidiaries) shall (will) not
>> } } therefore be liable for the message if modified. } 
>> }                } ---------------------------------------------
>> } } Ce message et toutes les pieces jointes (ci-apres le
>> } } "message") sont etablis a l'intention exclusive de
>> } ses } destinataires et sont confidentiels. Si vous recevez
>> } ce } message par erreur, merci de le detruire et d'en
>> } avertir } immediatement l'expediteur. Toute utilisation de ce
>> } } message non conforme a sa destination, toute
>> } diffusion } ou toute publication, totale ou partielle, est
>> } interdite, sauf } autorisation expresse. L'internet ne permettant pas
>> } } d'assurer l'integrite de ce message, BNP PARIBAS (et
>> } ses
>> } filiales) decline(nt) toute responsabilite au titre
>> } de ce } message, dans l'hypothese ou il aurait ete modifie.
>> } }
>> -- 
>> Kit SAPO.ADSL.PT Apenas 50 €.
>> Adira já em http://www.sapo.pt/kitadsl
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>




More information about the R-help mailing list