Tick marks across the axes'

Hi All,

I'm brand new to RStudio, and I have what I think is probably a very simple question to answer. Is it possible to have the X & Y axis tick marks either:

A. Centered on the X & Y axes
or
B. On both sides of the X & Y axes

Like the attached screenshot shows as a crude example

Hi @andeporter. You can set the axis tick by theme function. e.g.

ggplot() +
  ... +
  theme(axis.ticks.x = element_text(hjust = 1))

For your refer, https://ggplot2.tidyverse.org/reference/element.html

2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.