R/geom2plotly.r

#' @name plotly_helpers
#' @title Plotly helpers
#' @description Helper functions to make it easier to automatically create plotly charts
#' @export
to_basic.GeomXspline <- to_basic.GeomXspline2 <-
  getFromNamespace("to_basic.GeomLine", asNamespace("plotly"))

#' @rdname plotly_helpers
#' @export
to_basic.GeomBkde2d <-
  getFromNamespace("to_basic.GeomDensity2d", asNamespace("plotly"))

#' @rdname plotly_helpers
#' @param data,prestats_data,layout,params,p,... plotly interface parameters
#' @keywords internal
#' @export
to_basic.GeomStateface <- function(data, prestats_data, layout, params, p, ...) {
  prefix_class(data, "GeomText")
}

prefix_class <- function(x, y) {
  structure(x, class = unique(c(y, class(x))))
}

Try the ggalt package in your browser

Any scripts or data that you put into this service are public.

ggalt documentation built on May 2, 2019, 7:31 a.m.