Question: Only show every nth axis tick marks in ggplot2?

0

dzhang122 •

**0**wrote:I am able to group the dots by assigning my categorical data specific x- and y-values with empty spaces in between. Instead of showing every single tick mark on the axes,

or showing no ticks at all,

I would like to show only every nth tick mark on the axes corresponding to the labels. Can this be done in ggplot? Or maybe there is a different approach to generate the plot I am looking for?

That is pure ggplot s the question might get closed. See e.g. https://stackoverflow.com/questions/11335836/increase-number-of-axis-ticks.

46k