Skip to content

Commit 755d4ce

Browse files
committed
further clean of man entries
1 parent 2e422cd commit 755d4ce

23 files changed

+134
-132
lines changed

R/add-axes.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#' labels (lower values increase transparency).
1111
#' @param fontsize Size of axis font (in \code{ggplot2} terms; default=3).
1212
#' @param fontface Fontface for axis labels (1:4=plain,bold,italic,bold-italic).
13-
#' @param fontfamily Family of axis font (for example, `Times').
13+
#' @param fontfamily Family of axis font (for example, `\code{Times}').
1414
#' @param ... Mechanism to allow many parameters to be passed with alternative
1515
#' names (\code{color} for \code{colour} and \code{xyz} for \code{fontxyz}.
1616
#' @return Modified version of \code{map} with axes added.

R/add-osm-groups.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#'
55
#' @param map A \code{ggplot2} object to which the grouped objects are to be
66
#' added.
7-
#' @param obj An \code{sp} \code{SpatialPolygonsDataFrame} or
8-
#' \code{SpatialLinesDataFrame} (list of polygons or lines) returned by
9-
#' \code{\link{extract_osm_objects}}.
7+
#' @param obj An \code{sp} \code{SpatialPointsDataFrame},
8+
#' \code{SpatialPolygonsDataFrame}, or \code{SpatialLinesDataFrame} (list of
9+
#' polygons or lines) returned by \code{\link{extract_osm_objects}}.
1010
#' @param groups A list of spatial points objects, each of which contains the
1111
#' coordinates of points defining one group.
12-
#' @param cols Either a vector of >= 4 colours passed to \code{olour_mat} (if
12+
#' @param cols Either a vector of >= 4 colours passed to \code{colour_mat} (if
1313
#' \code{colmat=T}) to arrange as a 2-D map of visually distinct colours
1414
#' (default uses \code{rainbow} colours), or (if \code{colmat=F}), a vector of
1515
#' the same length as groups specifying individual colours for each.
@@ -44,7 +44,7 @@
4444
#' are *excluded* from the group, while those outside the smaller yet inside the
4545
#' bigger group are included.
4646
#'
47-
#' @seealso \code{\link{colour_mat}}.
47+
#' @seealso \code{\link{colour_mat}}, \code{\link{add_osm_objects}}.
4848
#'
4949
#' @examples
5050
#' bbox <- get_bbox (c (-0.13, 51.5, -0.11, 51.52))

R/add-osm-objects.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#'
77
#' @param map A \code{ggplot2} object to which the objects are to be added.
88
#' @param obj A spatial (\code{sp}) data frame of polygons, lines, or points,
9-
#' typically as returned by \code{extract_osm_objects}.
9+
#' typically as returned by \code{\link{extract_osm_objects}}.
1010
#' @param col Colour of lines or points; fill colour of polygons.
1111
#' @param border Border colour of polygons.
1212
#' @param size Size argument passed to \code{ggplot2} (polygon, path, point)

R/add-osm-surface.R

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#' generated by \code{\link{extract_osm_objects}} to a graphics object
55
#' initialised with \code{\link{osm_basemap}}. The surface is spatially
66
#' interpolated between the values given in \code{dat}, which has to be a matrix or
7-
#' \code{data.frame} of 3 colums (x, y, z), where (x,y) are (longitude,
7+
#' \code{data.frame} of 3 columns (x, y, z), where (x,y) are (longitude,
88
#' latitude), and z are the values to be interpolated. Interpolation uses
99
#' \code{spatstat::Smoothing.ppp}, which applies a Gaussian kernel smoother
1010
#' optimised to the given data, and is effectively non-parametric.
@@ -32,8 +32,7 @@
3232
#' @param shape Shape of lines or points, for details of which see
3333
#' \code{?ggplot::shape}. If \code{bg} is provided and \code{shape} has 2
3434
#' elements, the second determines the \code{shape} of the background objects.
35-
#' @return modified version of \code{map} (a \code{ggplot2} object) to which
36-
#' surface has been added
35+
#' @return modified version of \code{map} to which surface has been added
3736
#'
3837
#' @note
3938
#' Points beyond the spatial boundary of \code{dat} are included in the surface

R/adjust-colours.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#' @param adj A number between -1 and 1 determining how much to lighten
1010
#' (positive values) or darken (negative values) the colours.
1111
#' @param plot If \code{TRUE}, generates a plot to allow visual comparison of
12-
#' original and adjusted colours
13-
#' @return Corresponding vector of adjusted colours (as hexadecimal strings)
12+
#' original and adjusted colours.
13+
#' @return Corresponding vector of adjusted colours (as hexadecimal strings).
1414
#' @export
1515
#'
1616
#' @seealso \code{\link{osm_structures}}, \code{?col2rgb}.

R/colour-mat.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' @param n number of rows and columns of colour matrix (default = 10; if length
77
#' 2, then dimensions of rectangle).
88
#' @param cols vector of length >= 4 of colors (example, default = \code{rainbow
9-
#' (4)}, or from \code{RColorBrewer}, \code{brewer.pal (4, 'Set1')}).
9+
#' (4)}, or \code{RColorBrewer::brewer.pal (4, 'Set1')}).
1010
#' \code{cols} are wrapped clockwise around the corners from top left to bottom
1111
#' left.
1212
#' @param rotate rotates the entire colour matrix by the specified angle (in

R/extract-osm-objects.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
#' max values, and rows of x and y values.
2020
#' @param verbose If \code{TRUE}, provides notification of progress.
2121
#'
22-
#' @return An \code{sp} data frame.
22+
#' @return Either a \code{SpatialPointsDataFrame}, \code{SpatialLinesDataFrame},
23+
#' or \code{SpatialPolygonsDataFrame}.
2324
#' @export
2425
#'
2526
#' @seealso \code{\link{add_osm_objects}}.

R/get-bbox.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#'
33
#' Converts a string of latitudes and longitudes into a square matrix to be
44
#' passed as a \code{bbox} argument (to \code{\link{extract_osm_objects}},
5-
#' \code{\link{osm_basemap}}, or \code{\link{make_osm_map}}.
5+
#' \code{\link{osm_basemap}}, or \code{\link{make_osm_map}}).
66
#'
77
#' @param latlon A vector of (longitude, latitude, longitude, latitude) values.
88
#' @return A 2-by-2 matrix of 4 elements with columns of min and max values, and

R/make-osm-map.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
#' \code{\link{osm_structures}}.
2323
#' @return List of two components:
2424
#' \enumerate{
25-
#' \item List of OSM structures each as \code{Spatial(Polygon/List)DataFrame}
26-
#' and appended to \code{osm_data} (which is \code{NULL} by default), and
25+
#' \item List of OSM structures each as
26+
#' \code{Spatial(Points/Lines/Polygons)DataFrame} and appended to
27+
#' \code{osm_data} (which is \code{NULL} by default), and
2728
#' \item The \code{map} as a \code{ggplot2} object
2829
#' }
2930
#' @export

R/osm-basemap.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#' here to specify background colour of plot; if missing, the colour is
1111
#' specified by \code{bg}.
1212
#' @param bg Background colour of map (default = \code{gray20}) only if
13-
#' \code{structs} not given)
14-
#' @return \code{ggplot2} object containing base map
13+
#' \code{structs} not given).
14+
#' @return A \code{ggplot2} object containing the base \code{map}.
1515
#' @export
1616
#'
1717
#' @seealso \code{\link{add_osm_objects}}, \code{\link{make_osm_map}}.

R/osmplotr.R

+47-47
Original file line numberDiff line numberDiff line change
@@ -6,59 +6,59 @@
66
#'
77
#' @section Data Functions:
88
#' \tabular{ll}{
9-
#' \code{\link{extract_osm_objects}}\tab Download arbitrary OSM objects\cr
10-
#' \code{\link{connect_highways}}\tab Returns points sequentially connecting
11-
#' list of named highways\cr
9+
#' \code{\link{extract_osm_objects}} \tab Download arbitrary OSM objects \cr
10+
#' \code{\link{connect_highways}} \tab Returns points sequentially connecting
11+
#' list of named highways \cr
1212
#' }
1313
#'
1414
#' @section Basic Plotting Functions (without data):
1515
#' \tabular{ll}{
16-
#' \code{\link{add_axes}}\tab Overlay longitudinal and latitudinal axes on plot\cr
17-
#' \code{\link{add_osm_objects}}\tab Overlay arbitrary OSM objects\cr
18-
#' \code{\link{make_osm_map}}\tab Automate map production with structures
19-
#' defined in \code{\link{osm_structures}}\cr
20-
#' \code{\link{osm_structures}}\tab Define structures and graphics schemes for
16+
#' \code{\link{add_axes}} \tab Overlay longitudinal and latitudinal axes on plot \cr
17+
#' \code{\link{add_osm_objects}} \tab Overlay arbitrary OSM objects \cr
18+
#' \code{\link{make_osm_map}} \tab Automate map production with structures
19+
#' defined in \code{\link{osm_structures}} \cr
20+
#' \code{\link{osm_structures}} \tab Define structures and graphics schemes for
2121
#' automating map production \cr
22-
#' \code{\link{osm_basemap}}\tab Initiate a \code{ggplot2} object for an OSM
23-
#' map\cr
24-
#' \code{\link{print_osm_map}}\tab Print a map to specified graphics
25-
#' device
22+
#' \code{\link{osm_basemap}} \tab Initiate a \code{ggplot2} object for an OSM
23+
#' map \cr
24+
#' \code{\link{print_osm_map}} \tab Print a map to specified graphics
25+
#' device \cr
2626
#' }
2727
#'
2828
#' @section Advanced Plotting Functions (with data):
2929
#' \tabular{ll}{
30-
#' \code{\link{add_osm_groups}}\tab Overlay groups of objects using specified
31-
#' colour scheme\cr
32-
#' \code{\link{add_osm_surface}}\tab Overlay data surface by interpolating given
30+
#' \code{\link{add_osm_groups}} \tab Overlay groups of objects using specified
31+
#' colour scheme \cr
32+
#' \code{\link{add_osm_surface}} \tab Overlay data surface by interpolating given
3333
#' data \cr
34-
#' \code{\link{add_colourbar}}\tab Overlay a scaled colourbar for data added
35-
#' with \code{\link{add_osm_surface}}\cr
34+
#' \code{\link{add_colourbar}} \tab Overlay a scaled colourbar for data added
35+
#' with \code{\link{add_osm_surface}} \cr
3636
#' }
3737
#'
3838
#' @section Colour Manipulation Functions:
3939
#' \tabular{ll}{
40-
#' \code{\link{adjust_colours}}\tab Lighted or darken given colours by specified
41-
#' amount\cr
42-
#' \code{\link{colour_mat}}\tab Generate continuous 2D spatial matrix of
43-
#' colours\cr
40+
#' \code{\link{adjust_colours}} \tab Lighted or darken given colours by specified
41+
#' amount \cr
42+
#' \code{\link{colour_mat}} \tab Generate continuous 2D spatial matrix of
43+
#' colours \cr
4444
#' }
4545
#'
4646
#' @section Other Functions:
4747
#' \tabular{ll}{
48-
#' \code{\link{get_bbox}}\tab return bounding box from input vector\cr
48+
#' \code{\link{get_bbox}} \tab return bounding box from input vector \cr
4949
#' }
5050
#'
5151
#' @section Data:
5252
#' \tabular{ll}{
53-
#' \code{\link{london}}\tab OSM Data from a small portion of central London\cr
53+
#' \code{\link{london}} \tab OSM Data from a small portion of central London \cr
5454
#' }
5555
#'
5656
#' @section Vignettes:
5757
#' \tabular{ll}{
58-
#' \code{basic-maps}\tab Describes basics of downloading data and making custom
59-
#' maps\cr
60-
#' \code{data-maps}\tab Describes how map elements can be coloured according to
61-
#' user-provided data, whether categorical or continuous.
58+
#' \code{basic-maps} \tab Describes basics of downloading data and making custom
59+
#' maps \cr
60+
#' \code{data-maps} \tab Describes how map elements can be coloured according to
61+
#' user-provided data, whether categorical or continuous \cr
6262
#' }
6363
#'
6464
#' @name osmplotr
@@ -77,36 +77,36 @@ NULL
7777
#'
7878
#' A list of \code{SpatialPolygonsDataFrames} (SPDF),
7979
#' \code{SpatialLinesDataFrames} (SLDF), and \code{SpatialPointsDataFrames}
80-
#' (SPtDf) containing OpenStreetMap polygons and lines for various OpenStreetMap
81-
#' structures in a small part of central London,
80+
#' (SPtDf) objects containing OpenStreetMap polygons and lines for various
81+
#' OpenStreetMap structures in a small part of central London,
8282
#' U.K. (\code{bbox = -0.15, 51.5, -0.1, 51.52}). The list includes:
8383
#' \enumerate{
84-
#' \item \code{dat_H} an SLDF of non-primary highways with 1.764 lines
85-
#' \item \code{dat_HP} an SLDF of primary highways with 378 lines
86-
#' \item \code{dat_BNR} an SPDF of non-residential buildings with 2,138 polygons
87-
#' \item \code{dat_BR} an SPDF of residential buildings with 40 polygons
88-
#' \item \code{dat_BC} an SPDF of commerical buildings with 17 polygons
89-
#' \item \code{dat_A} an SPDF of amenities with 442 polygons
90-
#' \item \code{dat_G} an SPDF of grassed areas with 23 polygons
91-
#' \item \code{dat_P} an SPDF of parks with 24 polygons
92-
#' \item \code{dat_N} an SPDF of natural areas with 18 polygons
93-
#' \item \code{dat_T} an SPtDF of trees with 1,310 points
94-
#' \item \code{dat_RFH} an SPDF containing 1 polygon representing Royal
84+
#' \item \code{dat_H}: an SLDF of non-primary highways with 1.764 lines
85+
#' \item \code{dat_HP}: an SLDF of primary highways with 378 lines
86+
#' \item \code{dat_BNR}: an SPDF of non-residential buildings with 2,138 polygons
87+
#' \item \code{dat_BR}: an SPDF of residential buildings with 40 polygons
88+
#' \item \code{dat_BC}: an SPDF of commerical buildings with 17 polygons
89+
#' \item \code{dat_A}: an SPDF of amenities with 442 polygons
90+
#' \item \code{dat_G}: an SPDF of grassed areas with 23 polygons
91+
#' \item \code{dat_P}: an SPDF of parks with 24 polygons
92+
#' \item \code{dat_N}: an SPDF of natural areas with 18 polygons
93+
#' \item \code{dat_T}: an SPtDF of trees with 1,310 points
94+
#' \item \code{dat_RFH}: an SPDF containing 1 polygon representing Royal
9595
#' Festival Hall
96-
#' \item \code{dat_ST} an SPDF containing 1 polygon representing
96+
#' \item \code{dat_ST}: an SPDF containing 1 polygon representing
9797
#' 150 Stamford Street
98-
#' \item \code{highways1} A \code{SpatialPoints} object containing 55 points representing
99-
#' the circular perimeter of \code{c ('Monmouth.St', 'Short.?s.Gardens',
100-
#' 'Endell.St', 'Long.Acre', 'Upper.Saint.Martin')}
101-
#' \item \code{highways2} A \code{SpatialPoints} object containing 47 points
98+
#' \item \code{highways1}: A \code{SpatialPoints} object containing 55 points
99+
#' representing the circular perimeter of \code{c ('Monmouth.St',
100+
#' 'Short.?s.Gardens', 'Endell.St', 'Long.Acre', 'Upper.Saint.Martin')}
101+
#' \item \code{highways2}: A \code{SpatialPoints} object containing 47 points
102102
#' representing the circular perimeter of
103103
#' \code{c ('Endell.St', 'High.Holborn', 'Drury.Lane', 'Long.Acre')}
104-
#' \item \code{highways3} A \code{SpatialPoints} object containing 55 points
104+
#' \item \code{highways3}: A \code{SpatialPoints} object containing 55 points
105105
#' representing the circular perimeter of
106106
#' \code{c ('Drury.Lane', 'High.Holborn', 'Kingsway', 'Great.Queen.St')}
107107
#' }
108108
#'
109-
#' The vignette 'basic-maps' demonstrates how these data were downloaded.
109+
#' The vignette \code{basic-maps} details how these data were downloaded.
110110
#'
111111
#' @docType data
112112
#' @keywords datasets

man/add_axes.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/add_osm_groups.Rd

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/add_osm_objects.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/add_osm_surface.Rd

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/adjust_colours.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/colour_mat.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/extract_osm_objects.Rd

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/get_bbox.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)