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
|
absolutePanel(
id = "controls_multiparam",
class = "draggable_controls",
fixed = TRUE,
top = 190,
right = 20,
width = 200,
draggable = TRUE,
shinyjs::hidden(div(
id = "multiparam_options",
wellPanel(
class = "optionswell",
strongBig("Parameter estimates"),
hr(class = "hroptions"),
selectInput(
"multiparam_options_display",
label = strongBig("Control"),
choices = c("Options", "Aesthetics", "Sorting"),
selected = "Options",
width = "100%"
),
conditionalPanel(
condition = "input.multiparam_options_display == 'Options'",
checkboxInput(
"param_plot_show_density",
label = "Kernel density estimates",
value = FALSE
),
checkboxInput(
"param_plot_show_ci_line",
label = "95% interval line",
value = TRUE
),
radioButtons(
"param_plot_point_est",
label = "Point estimate",
choices = c("Median", "Mean"),
selected = "Median",
inline = TRUE
),
hr(class = "hroptions"),
downloadButton("download_multiparam_plot", "ggplot2", class = "plot-download"),
downloadButton('save_pdf_multiparam', "pdf", class = "plot-download pdf-download")
),
conditionalPanel(
condition = "input.multiparam_options_display == 'Aesthetics'",
withMathJax(),
checkboxInput(
"param_plot_color_by_rhat",
label = "Color point est. by \\(\\hat{R}\\)",
value = FALSE
),
colourpicker::colourInput(
"param_plot_fill_color",
span(style = "font-size: 12px", "Density/CI color"),
"#590815"
),
colourpicker::colourInput(
"param_plot_outline_color",
span(style = "font-size: 12px", "Outline color"),
"#487575"
),
conditionalPanel(
condition = "input.param_plot_color_by_rhat == false",
colourpicker::colourInput(
"param_plot_est_color",
span(style = "font-size: 12px", "Point estimate color"),
base_fill
)
),
conditionalPanel(
condition = "input.param_plot_color_by_rhat == true",
selectInput(
"param_plot_rhat_palette",
span(style = "font-size: 12px", "Rhat palette"),
choices = c("Blues", "Grays", "Greens", "Oranges", "Purples", "Reds"),
selected = "Blues",
selectize = TRUE
)
)
),
conditionalPanel(
condition = "input.multiparam_options_display == 'Sorting'",
radioButtons(
"param_plot_sort_j",
label = "Sort parameters in select list by",
choices = c(Row = TRUE, Column = FALSE),
selected = TRUE,
inline = TRUE
),
helpText(
style = "font-size: 12px;",
"If applicable, sort with x[1,2] before x[2,1] or vice-versa"
)
)
)
))
)
|