Skip to content
Prev 348075 / 398500 Next

ggplot2 shifting bars to only overlap in groups

I am gettting the error"
Error in rep_len(rep.int(seq_len(n), rep.int(k, n)), length) : 
  object 'N' not found

Also your image did not come through.  Try sending it as a pdf file.

when I try to create 
df<- data.frame(gender=gl(2,1,N, c("male","female")),
          direction=gl(2,2,N, c("up","down")),
          condition=gl(4,4,N, c("c1","c2","c3","c4")),
          location=gl(2,16,N, c("east","west")),
          t=rnorm(N, 1, 0.5),
          ci=abs(rnorm(N, 0, 0.2)))

John Kane
Kingston ON Canada
____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.