Skip to content

Instantly share code, notes, and snippets.

@cdesante
Created June 20, 2012 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdesante/2960915 to your computer and use it in GitHub Desktop.
Save cdesante/2960915 to your computer and use it in GitHub Desktop.
Breaks in GGplot
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()
@dsparks
Copy link

dsparks commented Jun 20, 2012

Now this is a nice gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment