Skip to content

Commit 34f2d18

Browse files
fixed spelling errors
1 parent 4edb823 commit 34f2d18

16 files changed

+30
-30
lines changed

R/dataset_documentation.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"genbank_ex_data"
2222

2323

24-
#' Example dataset of comtamination
24+
#' Example dataset of contamination
2525
#'
2626
#' A dataset containing information from 97 NCBI accession numbers representing possible contamination:
2727
#'

R/extract_taxonomy--internal.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ validate_regex_match <- function(input, regex, max_print = 10) {
5656
#' Check a regex-key pair
5757
#'
5858
#' Checks that the number of capture groups in the regex matches the length of the key.
59-
#' Checks that only certian values of \code{key} can appear more that once.
59+
#' Checks that only certain values of \code{key} can appear more that once.
6060
#' Adds names to keys that will be used for column names in the output of \code{extract_taxonomy}.
6161
#' Uses non-standard evaluation to get the name of input variables.
6262
#'

R/extract_taxonomy--parsers.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class_from_obs_id <- function(obs_id, database = c("ncbi", "none"), batch_size =
6060
#' Any names added to the terms will be used as column names in the output.
6161
#' At least \code{"taxon_id"} or \code{"name"} must be specified.
6262
#' Only \code{"taxon_info"} can be used multiple times.
63-
#' Each term must be one of those decribed below:
63+
#' Each term must be one of those described below:
6464
#' \describe{
6565
#' \item{\code{taxon_id}}{A unique numeric id for a taxon for a particular \code{database} (e.g. ncbi accession number).
6666
#' Requires an internet connection.}
@@ -76,7 +76,7 @@ class_from_obs_id <- function(obs_id, database = c("ncbi", "none"), batch_size =
7676
#' The character(s) used to separate individual taxa within a classification.
7777
#' @param class_rev (\code{logical} of length 1)
7878
#' Used with the \code{class} term in the \code{key} argument.
79-
#' If \code{TRUE}, the order of taxon data in a classfication is reversed to be specific to broad.
79+
#' If \code{TRUE}, the order of taxon data in a classification is reversed to be specific to broad.
8080
#' @param database (\code{character} of length 1) The name of the database that patterns given in
8181
#' \code{parser} will apply to. Valid databases include "ncbi", "itis", "eol", "col", "tropicos",
8282
#' "nbn", and "none". \code{"none"} will cause no database to be quired; use this if you want to not use the

R/extract_taxonomy--wrappers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Parse HMP QIIME results
22
#'
3-
#' NOTE: Not extensivley tested
3+
#' NOTE: Not extensively tested
44
#' Parses the results of the Human Microbiome Project QIIME analysis of the 16S metagenomic data.
55
#' This is mostly a wrapper for \code{\link{extract_taxonomy}}.
66
#'

R/extract_taxonomy.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#' \item{\code{name}}{The name of a taxon. Not necessarily unique, but are interpretable
2121
#' by a particular \code{database}. Requires an internet connection.}
2222
#' \item{\code{taxon_info}}{Arbitrary taxon info you want included in the output. Can be used more than once.}
23-
#' \item{\code{class}}{A list of taxa information that consitutes the full taxonomic classification
23+
#' \item{\code{class}}{A list of taxa information that constitutes the full taxonomic classification
2424
#' from broad to specific (see \code{class_rev}) for a particular \code{database}. Individual taxa
2525
#' are separated by the \code{class_sep} argument and the information is parsed by the
2626
#' \code{class_regex} and \code{class_key} arguments.}
@@ -313,7 +313,7 @@ extract_taxonomy.list <- function(input, ...) {
313313
#' Requires an internet connection.}
314314
#' \item{\code{name}}{The name of a taxon. Not necessarily unique, but are interpretable
315315
#' by a particular \code{database}. Requires an internet connection.}
316-
#' \item{\code{class}}{A list of taxa information that consitutes the full taxonomic classification
316+
#' \item{\code{class}}{A list of taxa information that constitutes the full taxonomic classification
317317
#' from broad to specific (see \code{class_rev}) for a particular \code{database}. Individual taxa
318318
#' are separated by the \code{class_sep} argument and the information is parsed by the
319319
#' \code{class_regex} and \code{class_key} arguments.}

R/heat_tree--internal.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Bounding box coords for labels
22
#'
3-
#' Given a position, size, rotation, and justification of a lable, calculate the bounding box coordinants
3+
#' Given a position, size, rotation, and justification of a lable, calculate the bounding box coordinates
44
#'
55
#' @param x Horizontal position of center of text grob
66
#' @param y Vertical position of center of text grob

R/heat_tree--layouts.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#' @param name (\code{character} of length 1 OR NULL) name of algorithm. Leave \code{NULL} to
99
#' see all options.
1010
#' @param graph (\code{igraph}) The graph to generate the layout for.
11-
#' @param intitial_coords (\code{matrix}) Initial node layout to bawse new layout off of.
11+
#' @param intitial_coords (\code{matrix}) Initial node layout to base new layout off of.
1212
#' @param effort (\code{numeric} of length 1) The amount of effort to put into layouts. Typically
1313
#' determines the the number of iterations.
1414
#' @param ... (other arguments) Passed to igraph layout function used.

R/heat_tree--mapping.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Rescale numeric vector to have specified minimum and maximum.
22
#'
3-
#' Rescale numeric vector to have specified minimum and maximum, but allow for hard boundries.
3+
#' Rescale numeric vector to have specified minimum and maximum, but allow for hard boundaries.
44
#' Light wrapper for scales::rescale
55
#'
66
#' @param x values to rescale
@@ -53,7 +53,7 @@ apply_color_scale <- function(values, color_series, interval = NULL, no_color_in
5353

5454

5555

56-
#' The defualt quantative color palette
56+
#' The default quantative color palette
5757
#'
5858
#' Returns the default color palette for quantative data.
5959
#'
@@ -68,7 +68,7 @@ quantative_palette <- function() {
6868
}
6969

7070

71-
#' The defualt qualitative color palette
71+
#' The default qualitative color palette
7272
#'
7373
#' Returns the default color palette for qualitative data
7474
#'
@@ -82,7 +82,7 @@ qualitative_palette <- function() {
8282
return(c(RColorBrewer::brewer.pal(9, "Set1"), RColorBrewer::brewer.pal(9, "Pastel1")))
8383
}
8484

85-
#' The defualt diverging color palette
85+
#' The default diverging color palette
8686
#'
8787
#' Returns the default color palette for diverging data
8888
#'

R/heat_tree--vertex_size.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#===================================================================================================
2-
#' Get all distances beween points
2+
#' Get all distances between points
33
#'
4-
#' Returns the distances bewteen every possible combination of two points.
4+
#' Returns the distances between every possible combination of two points.
55
#'
66
#' @param x (\code{numeric} of length 1) x coordinate
77
#' @param y (\code{numeric} of length 1) y coordinate

R/heat_tree.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ heat_tree.taxmap <- function(.input, ...) {
4444
#' Taxonomic classifications can have multiple roots, resulting in multiple trees on the same plot.
4545
#' Sizes and colors of nodes, edges, labels, and individual trees can be displayed relative to
4646
#' numbers (e.g. taxon statistics, such as abundance).
47-
#' The displayed range of colors and sizes can be explicitly defined or automatically genereated.
47+
#' The displayed range of colors and sizes can be explicitly defined or automatically generated.
4848
#' Various transforamtions can be applied to numbers sizes/colors are mapped to.
4949
#' Several types of tree layout algorithms from \code{\link{igraph}} can be used.
5050
#'
@@ -70,7 +70,7 @@ heat_tree.taxmap <- function(.input, ...) {
7070
# #' Default: Not used.
7171
#'
7272
#' @param node_label_size See details on size.
73-
#' Default: relative to veterx size.
73+
#' Default: relative to vertex size.
7474
#' @param edge_label_size See details on size.
7575
#' Default: relative to edge size.
7676
#' @param tree_label_size See details on size.
@@ -167,7 +167,7 @@ heat_tree.taxmap <- function(.input, ...) {
167167
#'
168168
#' @param overlap_avoidance (\code{numeric})
169169
#' The relative importance of avoiding overlaps vs maximizing size range.
170-
#' Higher numbers will cause node size optimazation to avoid overlaps more.
170+
#' Higher numbers will cause node size optimization to avoid overlaps more.
171171
#' Default: \code{1}.
172172
#'
173173
#' @param margin_size (\code{numeric} of length 2)
@@ -183,7 +183,7 @@ heat_tree.taxmap <- function(.input, ...) {
183183
#' Default: Not used.
184184
#' @param make_legend if TRUE...
185185
#' @param title Name to print above the graph.
186-
#' @param title_size The size of the title realtive to the rest of the graph.
186+
#' @param title_size The size of the title relative to the rest of the graph.
187187
#'
188188
#' @param node_color_axis_label The label on the scale axis corresponding to \code{node_color}.
189189
#' Default: The expression given to \code{node_color}.
@@ -257,7 +257,7 @@ heat_tree.taxmap <- function(.input, ...) {
257257
#'
258258
#' @section ranges:
259259
#'
260-
#' The displayed range of colors and sizes can be explicitly defined or automatically genereated.
260+
#' The displayed range of colors and sizes can be explicitly defined or automatically generated.
261261
#' Size ranges are specified by supplying a \code{numeric} vector with two values: the minimum and maximum.
262262
#' The units used should be between 0 and 1, representing the proportion of a dimension of the graph.
263263
#' Since the dimensions of the graph are determined by layout, and not always square, the value
@@ -282,7 +282,7 @@ heat_tree.taxmap <- function(.input, ...) {
282282
#' \item{"graphopt"}{Use \code{\link[igraph]{with_graphopt}}. A force-directed layout.}
283283
#' \item{"mds"}{Use \code{\link[igraph]{with_mds}}. Multidimensional scaling.}
284284
#' \item{"fruchterman-reingold"}{Use \code{\link[igraph]{with_fr}}. A force-directed layout.}
285-
#' \item{"kamada-kawai"}{Use \code{\link[igraph]{with_kk}}. A layout based on a phyisical model of springs.}
285+
#' \item{"kamada-kawai"}{Use \code{\link[igraph]{with_kk}}. A layout based on a physical model of springs.}
286286
#' \item{"large-graph"}{Use \code{\link[igraph]{with_lgl}}. Meant for larger graphs.}
287287
#' \item{"drl"}{Use \code{\link[igraph]{with_drl}}. A force-directed layout.}
288288
#' }
@@ -295,7 +295,7 @@ heat_tree.taxmap <- function(.input, ...) {
295295
#' These are defined in the same units as element size/color.
296296
#' By default, the minimum and maximum equals the range of the values used to infer size/color.
297297
#' Setting a custom interval is useful for making size/color in multiple graphs correspond to the same statistics,
298-
#' or setting logical bounderies (such as \code{c(0,1)} for proportions.
298+
#' or setting logical boundaries (such as \code{c(0,1)} for proportions.
299299
#' Note that this is different from the "range" options, which determine the range of graphed sizes/colors.
300300
#'
301301
#' @examples

0 commit comments

Comments
 (0)