# Use predefined palette
get_palette("imhof")
# Custom palette creation using a named list for a simple black and white palette
custom_palette <- list(
palette_building = c("#000000", "#FFFFFF", "#CCCCCC"),
water = "#000000",
green = "#FFFFFF",
beach = "#000000",
parking = "#FFFFFF",
street = "#000000",
background = "#CCCCCC",
railway = "#000000",
hatch_water = TRUE,
linewidth_buildings = 0.05,
linewidth_motorway = 6,
linewidth_primary = 4,
linewidth_secondary = 4,
linewidth_tertiary=3,
linewidth_unclassified = 3,
linewidth_residential = 3,
linewidth_pedestrian = 1,
linewidth_service = 1,
linewidth_living_street = 1,
size_hatch = 1,
alpha_hatch = 0.1,
size_streetlamp = 0.2
)
get_palette(custom_palette)
Run the code above in your browser using DataLab