jrnold / ggthemes

Additional themes, scales, and geoms for ggplot2

Home Page:http://jrnold.github.io/ggthemes/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

geom_rangeframe is clipped by default

adamjhawkins opened this issue · comments

By default:

image

With coord_cartesian(clip = 'off')

image

As a geom, I guess it makes sense for it to be clipped, but it really doesn't look right where it's half the thickness of the ticks and clearly sliced in half as you can tell when looking at the rounded ends. If it's not possible for it to be somehow excluded from the clipping, could it be nudged a little so that it is fully inside the plot area?

commented

Good on you to notice this. I always felt that geom_rangeframe and the ticks don't match up in a way and now I can fix it with coord_cartesian(clip="off").
Thanks

Thanks for catching this! I'm adding this suggestion to the docs. I don't know how to solve it more completely: there is probably an approach to offset the x,y coords by the line, but I don't know how that would interact with coords.