NAs should be excluded from the level of discrete X-axis by default · Issue #1584 · tidyverse/ggplot2
When the variable for x is character, NAs are not treated as a break of X axis. But when the variable is factor, NAs are included. library(ggplot2) set.seed(1) d <- c("A", "B", NA) x <- sample(d, s...