Re: [R] how to make this qq plot in lattice and/or ggplot2

2009-02-08 Thread hadley wickham
On Sat, Feb 7, 2009 at 9:25 PM, Juliet Hannah wrote: > Hi Group, > > Here is some data. > > p <- runif(1000) # sample data > groups <- rep(c(1,2),each=500) #conditioning variable > mydata <- cbind(p,groups) > n <- length(p) > u <- (1:n)/(n + 1) # uniform distribution reference for qqplot > logp <-

Re: [R] how to make this qq plot in lattice and/or ggplot2

2009-02-07 Thread Deepayan Sarkar
On 2/7/09, Juliet Hannah wrote: > Hi Group, > > Here is some data. > > p <- runif(1000) # sample data > groups <- rep(c(1,2),each=500) #conditioning variable > mydata <- cbind(p,groups) > n <- length(p) > u <- (1:n)/(n + 1) # uniform distribution reference for qqplot > logp <- -log(p,base=1