Displaying 1 result from an estimated 1 matches for "selected_graph".
2024 Jun 06
2
R Shiny Help - Trouble passing user input columns to emmeans after ANOVA analysis
...req(main_effects_model(), interaction_model())
selectInput("model_selection", "Which ANOVA model do you want to
graph?", choices = c("Main effects model", "Interaction model"))
})
# Create a reactive expression to store the selected graph variable
selected_graph <- reactive({
input$graph
})
# Create a reactive expression to store the selected model
selected_model <- reactive({
input$model_selection
})
# Render the plot based on the selected variables
output$graph_plot <- renderPlot({
req(data(), selected_graph(), selected...