With grid.lines, lines are added to better separate the maps from each other.
After that the three maps are inserted, for Hawaii the “height” again depends on the ratio of the “height” of Alaska to the 48 states. The height of each row depends on the ratio of the “height” of Alaska and the 48 states. With grid.layout, a window with two rows and one column is defined. In order for the widest possible range of people to be able to interpret a map, care should also be taken, if possible, to ensure that color-blind people can identify the differences between classes. In addition, when using a palette, it should be clear which color stands for lower or higher values.
Green is associated with forests and blue with bodies of water. This example can also be extended to geographical features. For example, red is associated with negative things, while green is associated with positive things. You should pay attention to the selection of your colors: Colors transfer feelings. Categorical palettes: Easily distinguishable colors, ideal for categorical dataĪlternatively, a custom palette can be passed, for this purpose HEX codes may be used.
Should be used for continuous variables with a natural midpoint ( midpoint). Diverging pallets: Follow a gradient from dark to light, to dark. Sequential pallets: Follow a gradient from light to dark.
The palettes from these packages can be divided into three types of palettes: # load shapefile for bavaria bavaria = 1000000, ] # turn it into an sf object cities % st_as_sf( coords = c( "long", "lat"), crs = 4326) %>% st_cast( "POINT") # keep only the cities that are in europe cities <- st_intersection(cities, st_union(europe_shape)) # turn the europe object into a MULTILINESTRING europe_shape <- st_cast(europe_shape, "MULTILINESTRING") communities <- read_sf( "gmd_ex.shp") # keep only the ones in rosenheim rosenheim <- communities # load the csv file for honey production in the us honey_csv <- read_csv( "honeyproduction.csv") # load the xlsx file for abbreviations of the us states abbrev <- read_xlsx( "abbrev.xlsx") # load honey shapefile honey_sf <- read_sf( "honey.shp")