Closed RonEfrat closed 1 year ago
Hey @RonEfrat - Hard for me to reproduce that without dt
, but I get the idea. The problem is probably that the scale_y_continuous()
is filtering the boundary points of the rectangle that's doing the darkening. Instead of setting the limits with a scale function, it's usually better to do that with a coord function. Usually that's coord_cartesian(ylim = c( _ , _ ))
, but in this case you'd use coord_map( ylim = c(12.5, 37.5) )
with the same argument. Hope that helps!
Hi,
I loaded a map and plotted it using ggmap, with added routes on it. I wanted to use the "darken" option, but it only works if I do not change the axes limits.
Example:
This is working:
But this ignores the darken command:
*I tried only with the xlim or only with the scale_y_continuous, both ignore the darken
Wil appreciate your help.
Thanks!