R/density_plot.R

Defines functions density_plot

Documented in density_plot

#' Creating a density plot
#'
#' @param v numeric vector
#'
#' @return graph
#' @export

#' @examples
density_plot <- function(v){
  stopifnot(is.numeric(v))
  data.frame(values = v) %>%
    ggplot(aes(x = values)) +
    geom_density()
}
HanR2019/starterpackage documentation built on Jan. 8, 2020, 12:02 a.m.