Skip to content

issue with dateline #9

@yuliaUU

Description

@yuliaUU

Hi!

thanks for the package, very neat!

i have issue with longitude labels for area passing a dateline (180)

how to specify xlim in this case

cn_xlim <- c(120, 190) # HERE not sure 
cn_ylim <- c(-60, -15)

ggplot() +
  geom_world() +
  annotation_graticule(
    xlim           = cn_xlim,
    ylim           = cn_ylim,
    crs            = 4326,
    lon_step       = 10,
    lat_step       = 10,
    label_color    = NA,    # draw only lines; use axis labels instead
    label_offset   = 1,
    label_size     = 3.5
  ) +
  coord_sf(
    xlim   = cn_xlim,
    ylim   = cn_ylim,
    expand = FALSE
  ) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions