[R] [FORGED] Manually inserting an extra tick on the y axis in ggplot2

Rolf Turner r.turner at auckland.ac.nz
Fri Mar 25 23:13:45 CET 2016


On 26/03/16 03:07, KMNanus wrote:
> I have called geom_hline to insert a horizontal line on the y axis of a plot at a given point.
>
> How can I insert the corresponding tick and its value on the y axis itself?

I think that axis() is what you need, but it's hard to tell without a 
reproducible example.

cheers,

Rolf Turner

-- 
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276



More information about the R-help mailing list