?plot.formula ... and note the 'data' argument, which you have appeared to have omitted. Presumably you received an error message that informed you that R could not find your variables, but as you have failed to follow the posting guide and provide us an error message, one cannot be sure.
One might even say that "miss Too Quick" appears to be an appropriate pseudonym for you... -- Bert On Sat, Mar 3, 2012 at 7:35 PM, missToo Quick <misstooqu...@yahoo.com> wrote: > Hi there, > I'm trying to make a scatterplot of removed versus duration for each type of > bee. No matter what I try, I can't seem to get my code to work. > Any help would be appreciated. Thanks! > My r-code: > dat$BEE <- with(dat, factor(BEE, c(1,2))) > plot(REMOVED~DURATION,pch=BEE, col=BEE) REMOVED DURATION BEE > 1 0.07 2 QUEEN > 2 0.10 5 QUEEN > 3 0.11 7 QUEEN > 4 0.12 11 QUEEN > 5 0.15 12 QUEEN > 6 0.19 11 QUEEN > 7 0.28 9 QUEEN > 8 0.31 9 QUEEN > 9 0.30 16 QUEEN > 10 0.34 17 QUEEN > 11 0.35 12 QUEEN > 12 0.39 14 QUEEN > 13 0.38 23 QUEEN > 14 0.40 35 QUEEN > 15 0.42 21 QUEEN > 16 0.40 10 QUEEN > 17 0.41 9 QUEEN > 18 0.42 7 QUEEN > 19 0.48 11 QUEEN > 20 0.48 13 QUEEN > 21 0.47 14 QUEEN > 22 0.49 16 QUEEN > 23 0.50 14 QUEEN > 24 0.51 17 QUEEN > 25 0.53 22 QUEEN > 26 0.58 13 QUEEN > 27 0.59 13 QUEEN > 28 0.65 12 QUEEN > 29 0.60 19 QUEEN > 30 0.60 23 QUEEN > 31 0.69 21 QUEEN > 32 0.70 27 QUEEN > 33 0.70 28 QUEEN > 34 0.51 58 QUEEN > 35 0.70 15 QUEEN > 36 0.28 3 WORKER > 37 0.37 12 WORKER > 38 0.52 10 WORKER > 39 0.65 17 WORKER > 40 0.76 24 WORKER > 41 0.89 33 WORKER > 42 0.74 44 WORKER > 43 0.70 46 WORKER > 44 0.79 48 WORKER > 45 0.78 51 WORKER > 46 0.74 64 WORKER > 47 0.77 78 WORKER > [[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. -- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm ______________________________________________ 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.