Is it possible to only set the lower bound of a limit for continuous scale? I want to make all my plots 0 based without needing to specify the upper limit bound.
e.g.
+ scale_y_continuous(minlim=0)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
expand_limitsHere is a comparison of the two:
expand_limitsexpand_limitsAs of version 1.0.0 of
ggplot2, you can specify only one limit and have the other be as it would be normally determined by setting that second limit toNA. This approach will allow for both expansion and truncation of the axis range.specifying it via
ylim(c(0, NA))gives an identical figure.