1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
navlistPanel(
id = "pp_navlist",
widths = c(3, 9),
well = TRUE,
tabPanel(
"Select data",
div(
br(),
uiOutput("ui_pp_get_y"),
br(),
uiOutput("ui_pp_get_yrep")
)
),
"Plots",
tabPanel(
"Distribution of observed data vs replications",
div(
br(),
h4(withMathJax(plot_descriptions["plot_hists_rep_vs_obs"])),
br(),
actionButton(
"resample_hist_go",
label = "Show different replications",
icon = icon("refresh")
),
fluidRow(
column(
width = 5,
radioButtons(
"pp_hists_rep_vs_obs_type",
label = "",
choices = list(Histograms = "histogram", Densities = "density"),
inline = TRUE
)
),
column(
width = 4,
conditionalPanel(
condition = "input.pp_hists_rep_vs_obs_type == 'density'",
radioButtons(
"pp_hists_rep_vs_obs_overlay",
label = "",
choices = list(Separate = FALSE, Overlay = TRUE),
selected = FALSE,
inline = TRUE
)
)
)
),
plotOutput("pp_hists_rep_vs_obs_out", width = "90%"),
br()
)
),
tabPanel(
"Distributions of test statistics",
div(
br(),
h4(withMathJax(plot_descriptions["plot_test_statistics"])),
helpText(
"The blue lines show \\(T(y)\\), the value of the statistic computed from the observed data."
),
radioButtons(
"pp_hists_test_statistics_type",
label = "",
choices = list(Histograms = "histogram", Densities = "density"),
inline = TRUE
),
fluidRow(
column(
width = 6,
plotOutput("pp_hists_test_statistics_mean_out", height = "200px")
),
column(
width = 6,
plotOutput("pp_hists_test_statistics_sd_out", height = "200px")
)
),
br(),
fluidRow(
column(
width = 6,
plotOutput("pp_hists_test_statistics_min_out", height = "200px")
),
column(
width = 6,
plotOutput("pp_hists_test_statistics_max_out", height = "200px")
)
),
br()
)
),
tabPanel(
"Scatterplots",
div(
br(),
h4(withMathJax(plot_descriptions["plot_obs_vs_avg_y_rep"])),
checkboxInput("pp_zoom_to_zero", "Zoom to include (0,0)", value = FALSE),
plotOutput("pp_y_vs_avg_rep_out", height = "250px", width = "80%"),
# h5(withMathJax(plot_descriptions["plot_avg_rep_vs_avg_resid_rep"])),
# plotOutput("pp_avg_rep_vs_avg_resid_rep_out", height = "250px", width = "80%"),
br()
)
),
tabPanel(
"Histograms of residuals",
div(
br(),
h4(withMathJax(plot_descriptions["plot_hist_resids"])),
br(),
actionButton(
"resample_resids_go",
label = "Show a different replication",
icon = icon("refresh")
),
br(),br(),
plotOutput("pp_hist_resids_out", height = "250px", width = "75%")
)
),
"About",
tabPanel(
"About graphical posterior predictive checking",
source(file.path("ui_files", "pp_about.R"), local = TRUE)$value
),
tabPanel(
"Tutorial",
includeMarkdown("markdown/pp_check_tutorial.md")
)
)
|