Description Usage Arguments Value Examples
Explore a dataset using a simple app
1 2 3 4 5 6 | explore_data_old(
dataset,
covariates = NULL,
outcome_var = NULL,
data_dictionary = NULL
)
|
dataset |
|
covariates |
|
outcome_var |
|
data_dictionary |
Each menu item covers a different part of exploratory data analysis with simple visualizations for discussion. The tabs are automatically updated with variables depending on the variable types. |
A Shiny App object that can either be run in the console or on an external shiny server such as shinyapps.io. For building the actual app.R, see build_shiny_app
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(ggplot2)
data(diamonds)
if(interactive()){
burro::explore_data(diamonds, outcome_var="cut")
}
# example with data dictionary
# look at NHANES data (you need to have NHANES package installed)
library(NHANES)
data(NHANES)
if(interactive()){
#this data dictionary is provided since NHANES doesn't have one
data_dict <- read.csv(system.file("nhanes/data_dictionary.csv", package="burro"))
burro::explore_data(NHANES[1:10,], data_dictionary=data_dict)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.