Description Usage Arguments Value Examples
View source: R/plotting_helpers.R
north_arrow plots a North arrow in user defined places in a map.
1 | north_arrow(position = "topright", xlim = NULL, ylim = NULL)
|
position |
(character or numeric) position of the North arrow. If character, options are: "topright", "topleft", "bottomleft", or "bottomright". Default = "topright". |
xlim |
(numeric) vector of two numbers indicating the x limits of the
plotting area. Default = |
ylim |
(numeric) vector of two numbers indicating the y limits of the
plotting area. Default = |
Plot of a simple North arrow located in the position
of the plot
specified.
1 2 3 4 5 6 | # simple plot
plot(1:10, 1:10, col = "transparent")
# north arrows
north_arrow(position = "topright")
north_arrow(position = "bottomright")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.