R/peity_p.R

Defines functions peity_p

Documented in peity_p

#' Group texts and charts
#'
#' You can group text and charts in the same p html tag. It is useful when you
#' want write in rmarkdown or shiny.
#'
#' @param ... Text and charts separated by comma.
#'
#' @examples
#' peity_p(
#' "This is", bar(c(1,2,3)), "a inline", donut(c(1,2,3)), "chart!"
#' )
#'
#' @export
peity_p <- function(...){
  htmltools::tagList(
    htmltools::p(...)
  )
}
samuelmacedo83/peity documentation built on Dec. 22, 2021, 10:14 p.m.