
Area Q Summary Section Module
mod_results_section_area_q.Rd
This Shiny module generates an Area Q summary section, intended for use within the `mod_results_primary` module. It provides a focused view of the Area Q calculations, offering insights into the spatial distribution and centroidal properties of responses in a VOX Analysis session.
Usage
mod_results_section_area_q_server(id, df_input_response, date_primary)
mod_results_section_area_q_ui(id)
Arguments
- id
The namespace `id`, used to uniquely identify Shiny modules and UI components within the VOX Analysis package.
- df_input_response
A `data.frame` containing referent names and their associated responses, typically recorded by the listener. For example data, run `data("df_input_response_example")` or `data("df_input_response_previous_example")`.
- date_primary
A single date `vector` specifying the primary evaluation date. This parameter is essential when multiple evaluation dates are available, as it determines which date will be prioritized for calculations or highlights within the function.
Examples
if (interactive()) {
# Load example response data
data("df_input_response_example")
# Define the UI with the Area Q summary section
ui <- page(
mod_results_section_area_q_ui("section_area_q")
)
# Set up the server to include Area Q summary functionality
server <- function(input, output, session) {
mod_results_section_area_q_server(
"section_area_q",
df_input_response_example,
date_primary = max(df_input_response_example$date_of_evaluation)
)
}
# Run the Shiny app
shinyApp(ui, server)
}