title: Is it possible to show only specific tick marks with ggplot in R?
body: <p>I know that it is possible to &quot;supress&quot; some axis labels by implementing a hack like this:</p>
  <pre><code># consider the range of the x variable to be between 0 and 1
  ggplot(data = df, aes(x = x, y = y)) +
    geom_point() +
    scale_x_continuous(breaks = seq(0, 1, 0.1), labels = append(seq(0, 0.5, 0.1), rep(&quot;&quot;, 4)))
  </code></pre>
  <p>Here I would only be showing the x axis labels from 0 through 0.5 and the tick marks at 0.6-1 would be &quot;empty&quot;, however I also want to remove those tick marks while keeping the ones from 0 to 0.5</p>