Skip to content

Chap. 9 : NZ > ## ----08-mapping-6 #1170

@markjaypearson

Description

@markjaypearson

Hi, I'm still very much a newbie to R but I love making maps and so I've been working through Chapter 9, and came up against a problem with replicating the nz_water (territorial limits) at geocompr/code/chapters
/09-mapping.R

nz_water = st_union(nz) |> st_buffer(22200) |> st_cast(to = "LINESTRING") map_nz2 = map_nz1 + tm_shape(nz_water) + tm_lines()

I have searched the text to find where I can source the (nz) in st_union(nz) without sucess.
Many thanks, Mark Pearson
Toowoomba, Queensland, Australia

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions