<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 5.50.4207.2601" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff><FONT face=Arial size=2>
<DIV>Hi - I would like to create a scatterplot with the symbols coded by a
factor in each record. Is their a better way than what I have used
below? I attempted to use the plot.factor, but cannot force it to make a
scatterplot instead of boxplots. I have considerd making a function with a
'for' statement for each level of the factor. Is there a better way for
when I am dealing with more levels of factors?</DIV>
<DIV> </DIV>
<DIV>Thanks, Matt Pocernich</DIV>
<DIV><BR>Y <-
c(40,38,30,47,25,32,13,35,27,24,20,13)<BR>X<-c(110,75,93,97,60,75,38,140,62,90,45,59)<BR>manuf
<- factor(rep(LETTERS[1:3],c(4,4,4)))<BR>data3 <-
data.frame(X,Y,manuf)</DIV>
<DIV>attach(data3)<BR></DIV>
<DIV>plot(X, Y, type="n")<BR>points(X[manuf=="A"], Y[manuf=="A"], pch =
"A")<BR>points(X[manuf=="B"], Y[manuf=="B"], pch = "B")<BR>points(X[manuf=="C"],
Y[manuf=="B"], pch = "C")<BR></DIV></FONT></BODY></HTML>