Closed leonawicz closed 10 years ago
First iteration of CRU 3.1 historical temperature and pecipitation data compiled for the app. .RData files for regional and city data, respectively, have been added to the serverHead.R script to be loaded into the global environment at app launch. Next step will involve basic integration of an "overlay CRU" input widget with the various plotting functions, controlling how and under what circumstances CRU data overlay will occur.
CRU 3.1 data overlay capability has been added to plot tab one. Preliminary design. Basic functionality. Currently limitations with supplementing plot legend with CRU information.
Option to overlay CRU currently shows as a checkboxInput control in the data subsetting panel. This is because it involves subsetting operations just like the GCM data do. But it would make more sense for the user to see the control in the plot options panel. Consider moving it there, and having the subsetting be done implicitly and automatically for CRU in addition to GCMs.
CRU 3.1 data overlay appears to work for plot tab one under all conditions (points, mean lines, subject lines, jitter, different numbers of factor levels for grouping and faceting variables).
Must treat CRU as a 'model' in some programmatic respects. This means when faceting by model, CRU will gets its own panel rather than continue to overlay the other models.
Legend information supplement seems good enough when plotting lines. Nothing appears for points alone. This is fine for now.
Circle with black fill and red border is used for CRU points. This works well because when no grouping variable is present, GCM data show as open circles with black border, but when grouping variable is selected, GCM data show as various colored circles with black border, but never black and never with a red border. Also, CRU lines show as red when (no group variable) GCM data are shown with black lines and black when (group variable chosen) GCM data are shown with colored lines. Furthermore, when switching to barplots for precip, CRU overlays are still as points and/or lines, not bars. Bars are black when no grouping variable is chosen, and CRU points may overlay bars, but are still visible due to the red border.
Next step, apply similar code to plotting function for plot tab two.
Preliminary CRU 3.1 overlay capability added to plot tab two.
Plot tab two satisfactory. Plot tab three partial progress. Problem integrating CRU 3.1 overlay with boxplot option.
Plot tab three: sort out issues with points/no points over boxplots when including CRU 3.1 overlay.
When using boxplots, CRU 3.1 is appended to GCM data frame, as opposed to general strategy of separate data frame plotting.
Appending has become the strict strategy for this plot tab.
This is tentatively completed. May be reopened later or a new, related, but more specific issue opened.
Begin by adding CRU data to the app.
The data should be compiled similarly to that of the GCMs such that CRU can be comparatively analyzed in the plots along with the GCMs. This will be incredibly complicated! For example, CRU has one "scenario", call it "historical", and that scenario is mutually exclusive of all the GCM scenarios. The time period for CRU is a subset of the time period of each GCM - this is as GOOD as it gets, a subset! CRU does not belong to either CMIP phase. There is nothing that inherently lends the app to plotting CRU along with GCMs in ALL the same ways. It just doesn't make sense.
Consider the following: