[R] symbol

John Fox jfox at mcmaster.ca
Tue Jan 28 17:21:02 CET 2003


Dear Luis,

You can use the pch argument to plot; assuming that class is numeric and 
consists of single-digit integers, you could specify something like plot( 
...., pch=as.character(class)). If class is a factor, you could substitute 
pch=as.character(as.numeric(type)).

I hope that this helps,
  John

At 03:42 PM 1/28/2003 +0000, Luis Silva wrote:
>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?

-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------




More information about the R-help mailing list