You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
727 B
23 lines
727 B
#' @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))))
|
|
}
|
|
|