Below is example code of a plot that does almost exactly what I want. The only thing I want to add is tick marks on the x axis (same size as the major ticks) according to the minor_breaks defined below.
df
Thanks in advance, --JT
Below is example code of a plot that does almost exactly what I want. The only thing I want to add is tick marks on the x axis (same size as the major ticks) according to the minor_breaks defined below.
df
Thanks in advance, --JT
This would do it in the precise instance:
scale_x_continuous(breaks= seq(1900,2000,by=10), labels = c(1900, rep("",4), 1950, rep("",4), 2000), limits = c(1900,2000), expand = c(0,0)) +
Here's a function that is not bullet-proof but works to insert blank labels when the beginning and ending major labels are aligned with the start and stopping values for the at
argument:
insert_minor
Test:
p