setZAxis {scatterPlotMatrix} | R Documentation |
Tells which dim is to display on Z axis.
Description
Tells which dim is to display on Z axis.
Usage
setZAxis(id, dim)
Arguments
id |
Output variable to read from (id which references the requested plot). |
dim |
Is to display on X axis. |
Value
No return value, called from shiny applications for side effects.
Examples
if(interactive()) {
library(shiny)
library(scatterPlotMatrix)
ui <- fluidPage(
fluidRow(
column(
2,
selectInput("zAxisSelect", "Z Axis:", colnames(iris))
),
column(
2,
checkboxInput("zAxisUsedCB", "Use Z Axis", FALSE)
)
),
scatterPlotMatrixOutput("spMatrix")
)
server <- function(input, output, session) {
output$spMatrix <- renderScatterPlotMatrix({
scatterPlotMatrix(iris)
})
observe({
scatterPlotMatrix::setZAxis("spMatrix", if (input$zAxisUsedCB) input$zAxisSelect else NULL)
})
}
shinyApp(ui, server)
}
[Package scatterPlotMatrix version 0.2.0 Index]