Skip to content

Chapter 15 error, could not find function "tm_components" #15

Description

@johnnhojjohn

In the Chapter 15: Arranging maps tutorial, the code chunk below from part 15.1, raises an error of "could not find function "tm_components"

tm_shape(slo_elev) +
  tm_raster(
    col.scale = tm_scale_continuous(values = "geyser", midpoint = NA)
  ) +  
  tm_title("Maribor", group_id = 1) +
  tm_inset(tmaptools::bb("Maribor"), group_id = 1) +
  tm_title("Ljubljana", group_id = 1) +
  tm_inset(tmaptools::bb("Ljubljana"), group_id = 1) +
  tm_title("Bled", group_id = 2) +
  tm_inset(tmaptools::bb("Bled"), group_id = 2) +
  tm_components(1, position = c("right", "bottom")) +
  tm_components(2, position = c("left", "top"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions