Changing X-axis tick names in ggplot2

I know that the names.arg can be used to change the tick names of the X-axis in base R. However, how can you do the same in ggplot2? I can't seem to find anything online.

labs(x = "My fabulous X-axis label",
y = "Y label",
title = "Fun title",
subtitle = "sub",
caption = "cap below the plot")

You can find the documentation for labeling in ggplot2 here: https://ggplot2.tidyverse.org/reference/labs.html

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.