Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-19 Thread John Kane
that--it's been a long time) John Kane Kingston ON Canada -Original Message- From: hyil...@gmail.com Sent: Wed, 18 Feb 2015 01:40:17 +0800 To: jrkrid...@inbox.com Subject: Re: [R] ggplot2 shifting bars to only overlap in groups The code is the same as the last one I showed, except I u

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-17 Thread Hörmetjan Yiltiz
al(values = c("blue", "darkorange"))+ > theme_bw()+ > scale_y_continuous(breaks=seq(0.6,1.5,0.1)) > gg > > John Kane > Kingston ON Canada > > -Original Message- > From: hyil...@gmail.com > Sent: Tue, 17 Feb 2015 01:20:06 +0800 > To: jrk

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-17 Thread John Kane
rkorange"))+   theme_bw()+   scale_y_continuous(breaks=seq(0.6,1.5,0.1)) gg John Kane Kingston ON Canada -Original Message- From: hyil...@gmail.com Sent: Tue, 17 Feb 2015 01:20:06 +0800 To: jrkrid...@inbox.com Subject: Re: [R] ggplot2 shifting bars to only overlap in groups Again,

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-16 Thread Hörmetjan Yiltiz
: jrkrid...@inbox.com, djmu...@gmail.com > Subject: Re: [R] ggplot2 shifting bars to only overlap in groups > > Thanks so much, John and Dennis (who did not respond in the mailing list > for some reason). I feel quite obliged to keep you thinking about this. > > I do agree that

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-16 Thread John Kane
Lovely, a much more elegant solution. John Kane Kingston ON Canada -Original Message- From: hyil...@gmail.com Sent: Mon, 16 Feb 2015 02:30:09 +0800 To: jrkrid...@inbox.com, djmu...@gmail.com Subject: Re: [R] ggplot2 shifting bars to only overlap in groups Thanks so much, John and

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-15 Thread Hörmetjan Yiltiz
Thanks so much, John and Dennis (who did not respond in the mailing list for some reason). I feel quite obliged to keep you thinking about this. I do agree that not using the bar chart with error bars is a better option. And since *condition* is an important ordinal factor for me, it would be much

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-15 Thread John Kane
colour = condition), width=.1 ) bc cf <- bc + coord_flip() cf ## -Original Message- From: hyil...@gmail.com Sent: Sat, 14 Feb 2015 16:32:03 +0800 To: jrkrid...@inbox.com Subject: Re: [R] ggplot2 shifting bars to only overlap in groups dat1  &

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-14 Thread John Kane
John Kane Kingston ON Canada -Original Message- From: hyil...@gmail.com Sent: Sat, 14 Feb 2015 16:32:03 +0800 To: jrkrid...@inbox.com Subject: Re: [R] ggplot2 shifting bars to only overlap in groups I think maybe it is possible to first produce a blank axis, and then splitting the data

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-14 Thread Hörmetjan Yiltiz
#x27;, 2, > NA) ) > dat1$jit <- as.numeric(dat1$jit) > > dat1$jit <- jitter(dat1$jit) > > x <- "male" > y <- "female"Begin code ## > ab <- ggplot(dat1, aes (jit, t)) + >geom_point(aes(colour

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-13 Thread John Kane
bb bc <- bb + geom_errorbar(data = dat1, aes(ymin=t-ci, ymax=t+ci, colour = condition), width=.2 ) bc cf <- bc + coord_flip() cf End code ### John Kane Kingston ON Canada -Original Message-

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-12 Thread Hörmetjan Yiltiz
rom: hyil...@gmail.com > Sent: Thu, 12 Feb 2015 23:38:01 +0800 > To: jrkrid...@inbox.com > Subject: Re: [R] ggplot2 shifting bars to only overlap in groups > > You are most likely simply not running the whole lines of code: note that > the first line is: > > N = 32 > >

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-12 Thread John Kane
I'm a bit blind today. I read df as a dput() . John Kane Kingston ON Canada -Original Message- From: hyil...@gmail.com Sent: Thu, 12 Feb 2015 23:38:01 +0800 To: jrkrid...@inbox.com Subject: Re: [R] ggplot2 shifting bars to only overlap in groups You are most likely simply not ru

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-12 Thread Hörmetjan Yiltiz
2,16,N, c("east","west")), > t=rnorm(N, 1, 0.5), > ci=abs(rnorm(N, 0, 0.2))) > > John Kane > Kingston ON Canada > > > > -----Original Message- > > From: hyil...@gmail.com > > Sent: Thu, 12 Feb 2015 22:08:36

Re: [R] ggplot2 shifting bars to only overlap in groups

2015-02-12 Thread John Kane
ohn Kane Kingston ON Canada > -Original Message- > From: hyil...@gmail.com > Sent: Thu, 12 Feb 2015 22:08:36 +0800 > To: r-help@r-project.org > Subject: [R] ggplot2 shifting bars to only overlap in groups > > Hi all, > > I have four factors for a continuous tim

[R] ggplot2 shifting bars to only overlap in groups

2015-02-12 Thread Hörmetjan Yiltiz
Hi all, I have four factors for a continuous time variable along with its confidence interval. I would like to produce a publication quality error bar chart that is clear to understand. For now, I used colors, x axis position, facets and alpha level to distinguish them. I would like to overlap ea