I am using ggplot2 to do some plotting of genomic data, so the basic format is that there is a chromosome and a position along it. I convert the positions to be on a contin
How about this?
breaks <- c(0, cumsum(chromosome_length)) scale_x_continuous("Genome Position", breaks = breaks + 0.5, labels = breaks)