Nothing
## plotly compatibility functions
.onLoad <- function(lib, pkg) {
rlang::run_on_load()
}
rlang::on_load({
if (isNamespaceLoaded("plotly")) {
register_plotly_methods()
} else {
# Set up to register when plotly gets loaded later
rlang::on_package_load("plotly", register_plotly_methods())
}
})
# Function to register all plotly methods
register_plotly_methods <- function() {
# Get the S3 methods from plotly
geom_bar_method <- utils::getS3method("geom2trace", "GeomBar", envir = asNamespace("plotly"))
linerange_method <- utils::getS3method("to_basic", "GeomLinerange", envir = asNamespace("plotly"))
# Register our methods
registerS3method("geom2trace", "GeomEpicurve", geom_bar_method, envir = asNamespace("plotly"))
registerS3method("to_basic", "GeomEpigantt", linerange_method, envir = asNamespace("plotly"))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.