search for: ownlimit

Displaying 1 result from an estimated 1 matches for "ownlimit".

Did you mean: ownlimits
2010 Apr 30
0
ggplot2 legend how?
...This is my use case, I need a legend showing CI "Classic", "Own bootstrap", "R bootstrap": library(ggplot2) e <- 1 p <- 1 x <- 1:S y <- rep(betas[p],S) data <- data.frame(x,y) classiclimits <- aes(x=x,ymax = classic[,e,p,1], ymin=classic[,e,p,2]) ownlimits <- aes(x=x+0.4,ymax = own[,e,p,1], ymin=own[,e,p,2]) rbootlimits <- aes(x=x+0.8,ymax = rboot[,e,p,1], ymin=rboot[,e,p,2]) g1 <- ggplot(data, aes(x, y)) g1 + geom_errorbar(classiclimits, colour = "red") + geom_errorbar(ownlimits, colour = "green") + geom_errorbar(rbo...