Created
June 20, 2012 16:55
-
-
Save cdesante/2960915 to your computer and use it in GitHub Desktop.
Breaks in GGplot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
X <- 1:5 | |
Y <- c(2, 5, 2.4, 3.67, 0.49) | |
qplot(X, weight=Y, geom="bar", ymin=0, xlab="X axis abel", ylab="Y axis label" | |
, main="MAIN LABEL")+ scale_y_continuous(limits=c(0, 5),breaks=c(1,2,3,4,5),labels=c("Strongly Disagree", | |
"Disagree","Neutral","Agree","Strongly Agree")) + theme_bw() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now this is a nice gist.