Answers for "ggplot x axis labels"

1

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
)
Posted by: Guest on July-19-2020
0

ggplot - blank title of axis

p + theme(axis.title.x = element_blank(),
          axis.title.y = element_blank())
Posted by: Guest on August-05-2020
0

ggplot geom_bar x axis labels

##
p + scale_x_discrete(limit = c("I1", "SI2", "SI1"),
                     labels = c("Ione","SItwo","SIone"))
Posted by: Guest on July-30-2020

Browse Popular Code Answers by Language