R/shape-descriptions.R

Defines functions shape_descriptions

Documented in shape_descriptions

##' Show the names and descriptions of all available shapes
##'
##' A simple function to show all the currently available shapes,
##' descriptions, and available sonic parameters for mapping data onto.
##'
##' @return A \code{data.frame} with each row representing one of the
##' shapes available for sonification, a brief description of the
##' shape, and the parameters available for sonification.
##' @keywords internal
##' @export
shape_descriptions <- function() {
  descriptions <- sapply(.getAllShapeDefs(), function(x) x$description)
  params <- sapply(.getAllShapeDefs(), function(x) paste(names(x$params), collapse=", "))
  return(cbind(descriptions, params))
}
  
statisfactions/playitbyr documentation built on Jan. 27, 2024, 1:33 p.m.