# scale_x_bp invoked by default
gggenomes(emale_genes) + geom_gene()
# customize labels
gggenomes(emale_genes) + geom_gene() +
scale_x_bp(suffix = "bp", sep = " ")
# Note: xlim will overwrite scale_x_bp() with ggplot2::scale_x_continuous()
gggenomes(emale_genes) + geom_gene() +
xlim(0, 3e4)
# set limits explicitly with scale_x_bp() to avoid overwrite
gggenomes(emale_genes) + geom_gene() +
scale_x_bp(limits = c(0, 3e4))
Run the code above in your browser using DataLab