remove y axis.ticks but not x?

115 views
Skip to first unread message

Mike Lawrence

unread,
Apr 28, 2009, 9:58:24 AM4/28/09
to ggplot2
Hi all,

I'd like to remove only the y axis.ticks, but
opts(axis.ticks=theme_blank()) removes both and
opts(axis.ticks.y=theme_blank()) does nothing.

Mike

--
Mike Lawrence
Graduate Student
Department of Psychology
Dalhousie University

Looking to arrange a meeting? Check my public calendar:
http://tr.im/mikes_public_calendar

~ Certainty is folly... I think. ~

hadley wickham

unread,
Apr 28, 2009, 2:34:54 PM4/28/09
to Mike Lawrence, ggplot2
Hi Mike,

Yes, it's only possible to remove them from both at the moment (I
didn't imagine that people would want to remove them from only one
when I was writing the code). One alternative is to specify (e.g.) +
scale_continuous(breaks = NA)

Hadley
--
http://had.co.nz/
Reply all
Reply to author
Forward
0 new messages