This function adds a north arrow to the animation frames created with frames_spatial.

add_northarrow(frames, height = 0.05, position = "bottomright",
x = NULL, y = NULL, colour = "black", size = 1,
label_text = "N", label_margin = 0.4, label_size = 5,
verbose = TRUE)

## Arguments

frames list of ggplot2 objects, crated with frames_spatial. numeric, height of the north arrow in a range from 0 to 1 as the proportion of the overall height of the frame map. character, position of the north arrow on the map. Either "bottomleft", "upperleft", "upperright", "bottomright". Ignored, if x and y are set. numeric, position of the bottom left corner of the north arrow on the x axis. If not set, position is used to calculate the position of the north arrow. numeric, position of the bottom left corner of the north arrow on the y axis. If not set, position is used to calculate the position of the north arrow. character, colour. numeric, arrow size. character, text below the north arrow. numeric, margin between label and north arrow as a proportion of the size of the north arrow. numeric, label font size. logical, if TRUE, messages on the function's progress are displayed (default).

## Value

List of frames.

frames_spatial frames_graph animate_frames

## Examples

library(moveVis)
library(move)

data("move_data", "basemap_data")
m <- align_move(move_data, res = 4, unit = "mins")

# create spatial frames using a custom NDVI base layer
r_list <- basemap_data[[1]]
r_times <- basemap_data[[2]]

# \donttest{
frames <- frames_spatial(m, r_list = r_list, r_times = r_times, r_type = "gradient",
# }