| launch_dashboard | R Documentation |
Opens a Shiny dashboard to explore collected response data alongside the
instrument definition. Use this interface after response collection for
analysis and quality control. Use launch_builder() to design new
questionnaires. The dashboard includes five panels:
launch_dashboard(
instrument = NULL,
responses = NULL,
port = NULL,
host = "127.0.0.1",
launch.browser = interactive()
)
instrument |
An |
responses |
A |
port |
Integer or NULL. TCP port for the Shiny server. When NULL, Shiny selects an available port automatically. |
host |
Character. Host address passed to |
launch.browser |
Logical. Whether to open the dashboard in the
default browser automatically. Defaults to |
Response count, date range, and instrument metadata.
Per-item frequency bar charts, histograms, and tabulated frequency counts for choice-type questions.
Scale score distributions with mean overlay, and a summary table of scale definitions.
Attention check pass rates for each check defined in the instrument.
Scrollable response table with a CSV download button.
The dashboard is read-only and takes its data from R. It has no upload
screen, so pass instrument and responses directly. To open and upload
data interactively, use launch_studio(), which includes this same
dashboard as its Dashboard tab. For a quick look at bundled demo data, use
launch_dashboard_demo().
Called for its side effect. Returns nothing.
run_analysis_plan(), quality_report(), score_scales()
## Not run:
# For the bundled demo, use launch_dashboard_demo().
# To upload data interactively, use launch_studio().
# Open the dashboard with your own instrument and responses
instr <- read_sframe(
system.file("extdata", "tourism_services_demo.sframe",
package = "surveyframe")
)
responses <- read_responses(
system.file("extdata", "tourism_services_responses.csv",
package = "surveyframe"),
instr,
respondent_id = "respondent_id",
submitted_at = "submitted_at",
meta_cols = "started_at"
)
launch_dashboard(instr, responses)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.