scale_xy_map: ggplot2 x and y scales definitions for maps

View source: R/scale_xy_map.R

scale_xy_mapR Documentation

ggplot2 x and y scales definitions for maps

Description

Define nice looking x and y axes conventions for maps plotted with ggplot2

Usage

scale_xy_map(...)

Arguments

...

passed to scale_x_continuous and scale_y_continuous

Details

This sets expand=c(0,0) to maximum map extent, map-py axes titles and labels, and removes minor breaks to be consistent among coord_quickmap and coord_map.

Examples

## Not run: 
library("ggplot2")
ggplot(thaixyz) + coord_quickmap() +
  geom_raster(aes(x=x, y=y, fill=z)) +
  scale_fill_wikitopo() +
  scale_xy_map()
 
## End(Not run)

jiho/chroma documentation built on Nov. 26, 2022, 2:39 a.m.