Skip to contents

This function creates a continuous x-axis scale with numbers formatted according to the current language setting.

Usage

scale_x_number(..., expand = c(0, 0))

Value

A ggplot2 scale object for the x-axis with formatted numbers.

Examples

library(ggplot2)
ggplot(mtcars, aes(x = wt, y = mpg)) +
  geom_point() +
  scale_x_number()