I've got a polar plot which uses geom_smooth(). The smoothed loess line though is very small and rings around the center of the plot. I'd like to "zoom in" so you can see it better.
Using something like scale_y_continuous(limits = c(-.05,.7))
will make the geom_smooth ring bigger, but it will also alter it because it will recompute with the datapoints limited by the limits = c(-.05,.7)
argument.
For a Cartesian plot I could use something like coord_cartesian(ylim = c(-.05,.7))
which would clip the chart but not the underlying data. However I can see no way to do this with coord_polar()
Any ideas? I thought there might be a way to do this with grid.clip()
in the grid package but I am not having much luck.
Any ideas?
What my plot looks like now, note "higher" red line:
What I get when I use scale_y_continuous()
note "higher" blue line, also it's still not that big.
ylim()
separately to the ggplot line – Dugaldscale_y_continuous()
function. – Livornocoord_cartesian()
andcoord_polar()
at github (coord_cartesian()
,coord_polar()
) leads me to believe this may not be possible in ggplot2 itself ascoord_polar()
doesn't have an argument to specify the limits ascoord_cartesian()
does, but I could be wrong. – Livorno