ggplot2 change axis limits
ggplot(mtcars, aes(mpg, wt)) +
  geom_point() +
  xlim(20, 15)ggplot2 change axis limits
ggplot(mtcars, aes(mpg, wt)) +
  geom_point() +
  xlim(20, 15)change label x axis ggplot2
theme(
  axis.title = element_text(),         # Change both x and y axis titles
  
  axis.title.x = element_text(),       # Change x axis title only
  axis.title.x.top = element_text(),   # For x axis label on top axis
  
  axis.title.y = element_text(),       # Change y axis title only
  axis.title.y.right = element_text(), # For y axis label on right axis
)Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us
