A workaround is to also remove axis.ticks.r whenever you remove axis.text.r, like this: theme(axis.text.r = element_blank(), axis.ticks.r = element_blank())). I haven’t been able to identify the underlying code issue, so I cannot resolve this problem directly.