#' Ternary Plot Shiny App Server Function
#'
#' @param input Provided by \pkg{Shiny}.
#' @param output Provided by \pkg{Shiny}.
#' @param session Provided by \pkg{Shiny}.
#' @author N. Frerebeau
#' @keywords internal
#' @noRd
function(input, output, session) {
## Data
data <- kinesis::prepare_server("prepare")
## Switch tab (only happen once)
observe({
bslib::nav_select(id = "main", selected = "Data")
}) |> bindEvent(data(), once = TRUE)
## Ternary Plot
kinesis::ternary_server("ternary", x = data)
kinesis::home_server("home")
kinesis::footer_server("footer")
session$onSessionEnded(stopApp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.