R/dashtemplate-package.r

Defines functions nameyourfunction

Documented in nameyourfunction

#' Dashboard Template
#' 
#' This is a template for creating functions to be used with PiLR dashboards.
#'
#' @name dashtemplate
#' @docType package
#' @param data The dataset retrieved from PiLR
#' @param params A list of all arguments sent to pilr_dashboard_panel

## Choose a name for your function and write the code for it in place of plot(1:10)
#' @export
nameyourfunction <- function(data, params, ...) {
  data <- data.frame(x=c(1,2,3),y=c(1,2,3))
  data %>%
    ggvis(~x, ~y)
}
pilrhealth/pilrdash-template documentation built on May 25, 2019, 7:12 a.m.