[R] ggplot2 directional line type?

2011-02-22 Thread Malcolm Ryan
I'm doing a path plot with ggplot2, the result is looking very nice, but I want to give some indication of which direction the lines are going. I thought of using colour gradients, but it doesn't look right. What would be ideal is a line type that indicated direction, something like ">>>". I

[R] ggplot2: Boxplot with given box size

2009-07-05 Thread Malcolm Ryan
Is there anyway in ggplot2 to set the aesthetics for a geom_boxplot directly, rather than having them computed by an implicit stat_boxplot? If I try: ggplot(data = t, aes(x = factor(x))) + geom_boxplot(coef=NULL, aes(lower=y_q1, upper=y_q3, middle=y_med, ymin=y_min, ymax=y_max)) I get the

[R] 'beside' option for boxplots

2009-06-04 Thread Malcolm Ryan
Is there any way to get a boxplot of several data sets beside one another on the same graph, as there is for barplot? If I do: d1 <- data.frame(a = c(rep(1:3, each = 3)), b = c(1:9)) d2 <- data.frame(a = c(rep(1:3, each = 3)), b = c(9:1)) boxplot(d1$b ~ d1$a) boxplot(d2$b ~ d2$a, add=T) It wi