-
Notifications
You must be signed in to change notification settings - Fork 7
/
_pkgdown.yml
132 lines (124 loc) · 4.45 KB
/
_pkgdown.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
template:
bootstrap: 5
bootswatch: cerulean
bslib:
primary: "#003399"
reference:
- title: Basemap functions
desc: >
Maps are plotted using the `basemap()` or `qmap()` functions that work
almost similarly to
[`ggplot()` as a base](https://ggplot2.tidyverse.org/reference/index.html)
for adding further layers to the plot using the `+` operator. The maps
generated this way already contain multiple ggplot layers.
Consequently, the [`data` argument](https://ggplot2.tidyverse.org/reference/ggplot.html)
needs to be explicitly specified inside `geom_*` functions when
adding `ggplot2` layers. Depending on the location of the map, the underlying
coordinates may be projected. Decimal degree coordinates need to be transformed
to the projected coordinates using the `transform_coord`,
[ggspatial](https://paleolimbot.github.io/ggspatial/), or
[`geom_sf` functions.](https://ggplot2.tidyverse.org/reference/ggsf.html). The
`shapefile_list` function can be used to acquire `shapefiles` argument names
when limiting basemaps using projected coordinates.
contents:
- basemap
- qmap
- transform_coord
- shapefile_list
- dist2land
- get_depth
- title: Functions to help customizing basemaps
desc: >
These functions help in customizing basemaps. The `auto_limits` function can be used to
retrieve projected coordinates from decimal degree position data and the
`reorder_layers` can be used to move land and glaciers on top of added
ggplot2 data layers.
contents:
- auto_limits
- reorder_layers
- theme_map
- title: Create bathymetries and shapefiles
desc: >
Custom bathymetry shapes can be added using the `raster_bathymetry` and
`vector_bathymetry` functions in this order. The underlying data can be
retrieved from the [ETOPO](https://www.ncei.noaa.gov/products/etopo-global-relief-model) or
[GEBCO](https://www.gebco.net/data_and_products/gridded_bathymetry_data/)
repositories. Already existing
[Geonorge](https://kartkatalog.geonorge.no/metadata/kartverket/dybdedata/2751aacf-5472-4850-a208-3532a51c529a)
bathymetries can be opened and added to the `shapefiles` argument as
`list(bathy =)`. The `clip_shapefile` function can be used to crop already
existing SpatialPolygons.
contents:
- raster_bathymetry
- vector_bathymetry
- geonorge_bathymetry
- clip_shapefile
- rotate_crs
- title: Size adjustment functions
desc: >
These functions convert line widths and font sizes measured in points (pt)
to ggplot2 equivalents. They can be used to follow line width and font size
requirements set by journals.
contents:
- LS
- FS
- reference:
- title: Map data
desc: >
Shape- and raster files used by the package. Higher resolution files are
stored in the [ggOceanMapsLargeData](https://github.com/MikkoVihtakari/ggOceanMapsLargeData)
repository. These files are automatically used by the basemap function. The
`basemap` function also supports custom sf and stars objects.
contents:
- dd_land
- dd_rbathy
- reference:
- title: Datasets
desc: >
The package contains ICES and Norwegian Directorate of Fisheries areas as sf
objects. These shapefiles are used in examples and included here for
convenience because they are regularly needed by the package author.
contents:
- ices_areas
- fdir_main_areas
- fdir_sub_areas
- title: Internal basemap functions
desc: >
Internal functions dealing with data and graphics for basemap. These
functions are run on the background and only needed if you modify your maps
beyond the options offered by ggOceanMaps.
contents:
- basemap_data
- define_shapefiles
- guess_coordinate_columns
- is_decimal_limit
- map_cmd
- round_any
- quiet
- dd_to_deg
- deg_to_dd
- select_element
- dd_clip_boundary
navbar:
components:
intro:
text: User manual
href: articles/ggOceanMaps.html
articles:
text: Articles
menu:
- text: News
- text: New features in version 2
href: articles/new-features.html
- text: -------
- text: Customising shapefiles
- text: Premade maps
# href: articles/premade-maps.html
- text: Premade shapefiles
# href: articles/premade-shapefiles.html
- text: -------
- text: Presentations
- text: SI2022 poster
href: articles/poster.html
- text: AeN workshop slides
href: https://aen-r-workshop.github.io/4-ggOceanMaps/ggOceanMaps_workshop.html