Re: [R] How to suppress factor labels

2011-06-08 Thread Ista Zahn
On Wed, Jun 8, 2011 at 5:02 PM, James Rome wrote: > I think the issue is that the x axis is a factor. Rather the opposite I think. In the data you sent, time is numeric, not a factor. This works for me: qplot(factor(time), error, data=times, size=I(1), geom="boxplot") + facet_wrap(~ runw

Re: [R] How to suppress factor labels

2011-06-08 Thread James Rome
I think the issue is that the x axis is a factor. How would ggplot2 know which ones to drop? So it labels them all. If I do the following, the labels get better: pp = qplot(time, error, data=times, size=I(1), geom="jitter", main=title, ylab="Error (min)", xlab="Time before ON (min)", a

Re: [R] How to suppress factor labels

2011-06-08 Thread Ista Zahn
Hi Jim, See ?scale_x_discrete Best, Ista On Wed, Jun 8, 2011 at 3:26 PM, James Rome wrote: > I am using ggplot2 to make a boxplot that overlays a scatterplot: > pp = qplot(time, error, data=times, size=I(1), geom="jitter", main=title, >        ylab="Error (min)", xlab="Time before ON (min)", al

[R] How to suppress factor labels

2011-06-08 Thread James Rome
I am using ggplot2 to make a boxplot that overlays a scatterplot: pp = qplot(time, error, data=times, size=I(1), geom="jitter", main=title, ylab="Error (min)", xlab="Time before ON (min)", alpha=I(1/10), color=times$runway, ylim=c(-30,40)) pp2 = pp + with(times, facet_wrap(~ run