diff --git a/R/canvas_chladni.R b/R/canvas_chladni.R index a850df31..b19b9484 100644 --- a/R/canvas_chladni.R +++ b/R/canvas_chladni.R @@ -9,8 +9,8 @@ #' @param waves a character specifying the number of randomly sampled waves, or an integer vector of waves to be summed. #' @param resolution resolution of the artwork in pixels per row/column. Increasing the resolution increases the quality of the artwork but also increases the computation time exponentially. #' @param warp a numeric value specifying the maximum warping distance for each point. If \code{warp = 0} (the default), no warping is performed. -#' @param angles optional, a resolution x resoltuion matrix containing the angles for the warp, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (default) the noise type is chosen randomly. -#' @param distances optional, a resolution x resoltuion matrix containing the distances for the warp, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (default) the noise type is chosen randomly. +#' @param angles optional, a resolution x resolution matrix containing the angles for the warp, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (the default), the noise type is chosen randomly. +#' @param distances optional, a resolution x resolution matrix containing the distances for the warp, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (the default), the noise type is chosen randomly. #' #' @return A \code{ggplot} object containing the artwork. #' diff --git a/R/canvas_flow.R b/R/canvas_flow.R index e9d824d4..d6bf556c 100644 --- a/R/canvas_flow.R +++ b/R/canvas_flow.R @@ -11,7 +11,7 @@ #' @param lwd expansion factor for the line width. #' @param iterations the maximum number of iterations for each line. #' @param stepmax the maximum proportion of the canvas covered in each iteration. -#' @param angles optional, a 200 x 200 matrix containing the angles in the flow field, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (default) the noise type is chosen randomly. +#' @param angles optional, a 200 x 200 matrix containing the angles in the flow field, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (the default), the noise type is chosen randomly. #' #' @return A \code{ggplot} object containing the artwork. #' diff --git a/man/canvas_chladni.Rd b/man/canvas_chladni.Rd index 3ea683ef..70de915c 100644 --- a/man/canvas_chladni.Rd +++ b/man/canvas_chladni.Rd @@ -16,9 +16,9 @@ canvas_chladni(colors, waves = 5, warp = 0, resolution = 500, \item{resolution}{resolution of the artwork in pixels per row/column. Increasing the resolution increases the quality of the artwork but also increases the computation time exponentially.} -\item{angles}{optional, a resolution x resoltuion matrix containing the angles for the warp, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (default) the noise type is chosen randomly.} +\item{angles}{optional, a resolution x resolution matrix containing the angles for the warp, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (the default), the noise type is chosen randomly.} -\item{distances}{optional, a resolution x resoltuion matrix containing the distances for the warp, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (default) the noise type is chosen randomly.} +\item{distances}{optional, a resolution x resolution matrix containing the distances for the warp, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (the default), the noise type is chosen randomly.} } \value{ A \code{ggplot} object containing the artwork. diff --git a/man/canvas_flow.Rd b/man/canvas_flow.Rd index ffac862c..d31aa138 100644 --- a/man/canvas_flow.Rd +++ b/man/canvas_flow.Rd @@ -20,7 +20,7 @@ canvas_flow(colors, background = "#fafafa", lines = 500, lwd = 0.05, \item{stepmax}{the maximum proportion of the canvas covered in each iteration.} -\item{angles}{optional, a 200 x 200 matrix containing the angles in the flow field, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (default) the noise type is chosen randomly.} +\item{angles}{optional, a 200 x 200 matrix containing the angles in the flow field, or a character indicating the type of noise to use (\code{svm}, \code{knn}, \code{rf}, \code{perlin}, \code{cubic}, \code{simplex}, or \code{worley}). If \code{NULL} (the default), the noise type is chosen randomly.} } \value{ A \code{ggplot} object containing the artwork.