Only show every nth axis tick marks in ggplot2?
0
0
Entering edit mode
17 months ago
dzhang122 • 0

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,

plot with ticks

or showing no ticks at all,

plot with no ticks

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?

R ggplot2 • 1.5k views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 1901 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6