0

How do I increase x axis line width also for individual plots 1, 2 and 3, and y axis for 2, 3, 6 and 8? Thanks

mtcars %>%
    rownames_to_column('car') %>%
    tidyr::gather(variable, value, disp:hp, -carb, factor_key = TRUE) %>%

    ggplot(aes(variable, value)) +
    geom_boxplot(outlier.shape = NA, width = 0.5) +
    geom_jitter(width = 0.2, size = 1, alpha = 0.7) +
    facet_wrap( ~ carb) +
    theme(axis.line = element_line(size = 0.5))

enter image description here

Pietro
  • 41
  • 4

0 Answers0