How to change the x axis scale limits to adjust itself depending on the max value of each group in ggplot2, for R?
Advertisements Here is some randomly generated sample data: [Data Info: The number of customers that visit a particular shop per day, across different branches] library(tidyverse) library(ggplot2) make_skewed_data <- function(n = 20){ round(rlnorm(n = n, meanlog = 0.3, sdlog = 0.5)*1000, 0) } num_customers <- c(make_skewed_data(50), make_skewed_data(50), make_skewed_data(50), make_skewed_data(50), make_skewed_data(50), make_skewed_data(50)) DF <- tibble(day = paste0("day",… Read More How to change the x axis scale limits to adjust itself depending on the max value of each group in ggplot2, for R?