paleolimbot / ggspatial

Enhancing spatial visualization in ggplot2
https://paleolimbot.github.io/ggspatial
368 stars 34 forks source link

Different parameters for the text size #44

Open rnuske opened 5 years ago

rnuske commented 5 years ago

For putting multiple maps on one page with gridExtra::arrangeGrob() I had to fiddle with all units and the text sizes.

The parameter controlling the size of the text is named differently and has different effects at least across annotation_scale(..., text_cex=0.5) and annotation_north_arrow(..., style=north_arrow_orienteering(text_size=4).

Would it be possible to harmonize the way the text size works?

paleolimbot commented 5 years ago

Yes, but it would require some refactoring. The ggspatial package will be getting some updates in the next two months, and I'll keep this issue open as a reminder to make this a thing.

As a side note, have you considered using the patchwork package to combine plots?

rnuske commented 5 years ago

Haven't looked at patchwork yet. Will give a try tonight. Thanks.

paleolimbot commented 4 years ago

Just working on this now! As you suggested, annotation_scale(..., text_cex=0.5) should definitely be refactored to use font_size, and the text_cex should be deprecated.