Re: [R] Scatter Plot Command Syntax Using Data.Frame Source

2011-08-31 Thread Jorge I Velez
Hi Rich, Using the data set "iris" as an example, you might also try require(car) scatterplot(Petal.Length ~ Sepal.Length | Species, data = iris) HTH, Jorge On Wed, Aug 31, 2011 at 4:50 PM, Rich Shepard <> wrote: > I've tried various commands. ?plot, Teetor's book, "R Cookbook", and > Mittal

Re: [R] Scatter Plot Command Syntax Using Data.Frame Source

2011-08-31 Thread Rich Shepard
On Thu, 1 Sep 2011, baptiste auguie wrote: Below are a couple of options using a standard dataset, Thanks, Baptiste. These point me in the right direction. Rich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] Scatter Plot Command Syntax Using Data.Frame Source

2011-08-31 Thread baptiste auguie
Hi, Below are a couple of options using a standard dataset, str(iris) ## using base graphics d <- split(iris, iris$Species) str(d) # list of 3 data.frames par(mfrow=n2mfrow(length(d))) # split the device in 3 plotting regions b.quiet <- lapply(names(d), function(x) { # loop over the list names

[R] Scatter Plot Command Syntax Using Data.Frame Source

2011-08-31 Thread Rich Shepard
I've tried various commands. ?plot, Teetor's book, "R Cookbook", and Mittal's book, "R Graphs Cookbook" without seeing how to write the command to create scatterplots from my data.frame. The structure is: str(chemdata) 'data.frame': 14886 obs. of 4 variables: $ site: Factor w/ 148 lev