Re: [R] ggplot2 / lattice

2009-12-19 Thread Felix Andrews
something like bwplot(val ~ g | G2, dta, pch = "|", box.width = 1, par.settings = list(box.rectangle = list(col = "darkred", fill = "grey90"), box.umbrella = list(col = "darkred"), strip.background = list(col = "transparent"))) For more on the Lattice

Re: [R] ggplot2 / lattice

2009-12-18 Thread Gary Miller
Thanks Felix, I got others except: 1. Is it possible to reduce the gaps between the boxplots, may be say "NO GAP". 2. I tried col="red" option, but its not changing the border color of boxes. R Code: g <- rep.int(c("A", "B", "C", "D"), 125) t <- rnorm(5000) a <- sample(t, 500, replace=TRUE) b <

Re: [R] ggplot2 / lattice

2009-12-17 Thread Felix Andrews
Look at ?panel.bwplot specifically 'fill', 'pch', and 'box.width'. 2009/12/18 Gary Miller : > @ Gabor: Thanks, it worked. > > @ All: Which options I should explore to change the appearance of boxes. > Like, > > 1. Color change. > 2. Fill-in boxes with colors. > 3. Change dot to line (used to rep

Re: [R] ggplot2 / lattice

2009-12-17 Thread Gary Miller
@ Gabor: Thanks, it worked. @ All: Which options I should explore to change the appearance of boxes. Like, 1. Color change. 2. Fill-in boxes with colors. 3. Change dot to line (used to represent median) 4. No gaps between boxplots in each category. # R Code: g <- rep.int(c("A", "B", "C", "D"), 1

Re: [R] ggplot2 / lattice

2009-12-17 Thread Gabor Grothendieck
Try this: bwplot(val ~ g | G2, dta) On Thu, Dec 17, 2009 at 9:34 PM, Gary Miller wrote: > Hi R Users, > > Is there a equivalent function for the following R code in Lattice package. > I want to plot a grouped box plots (grouped by two factors). > > g <- rep.int(c("A", "B", "C", "D"), 125) > t <

[R] ggplot2 / lattice

2009-12-17 Thread Gary Miller
Hi R Users, Is there a equivalent function for the following R code in Lattice package. I want to plot a grouped box plots (grouped by two factors). g <- rep.int(c("A", "B", "C", "D"), 125) t <- rnorm(5000) a <- sample(t, 500, replace=TRUE) b <- sample(t, 500, replace=TRUE) dta <- data.frame(val