ua-snap / shiny-apps

R Shiny apps
234 stars 191 forks source link

CMIP3 / CMIP5 app - Statistic menu #99

Closed leonawicz closed 9 years ago

leonawicz commented 10 years ago

Integrate a statistic menu offering whatever input choices are stored in the app metadata based on the data which have been extracted and prepped for it. For now this will include the mean, standard deviation and a number of specific quantiles: #89

The script used to generate metadata for the app, to be loaded at app launch, should now include names of statistics already parsed from standard data frame column names. E.g., it should read variables names like "Pct_95" and create a string, "95th percentile" for use in the selection menu (as well as to appear as required in any plot annotations). The labels should appear in a fixed and sensible order.

Placement should be near the climate variable and units menus in the data selection panel. Consider placement where the units menu is currently, and then perhaps removing the units menu in favor of a smaller checkbox below which simply offers to "Convert C,mm to F,in" as an alternative, unchecked by default. It's currently wasteful to take up space for this with a selection menu. This would require minimal changes to server side code to parse a TRUE/FALSE instead of a units string.

leonawicz commented 10 years ago

Menu integration complete. Display names and data column names in place. Plots currently making use of dynamic titling include this integration as well. Other plots are not this advanced yet.

Still need to address possible changing of the units menu, reorganization of data selection panel inputs, and the possibility of selecting different statistics for different variables for multivariate plots, which is currently just the bivariate scatter plot.

leonawicz commented 9 years ago

Menu organization and units, statistics, and variable selection complete.