use with R to create ticks for plots