crtahlin / medplot

Functions for drawing graphs in R visualizing medical information.
4 stars 2 forks source link

before selecting symptoms: error appearing #40

Closed llaarraa closed 10 years ago

llaarraa commented 10 years ago

Before symptoms are selected in the graph tab an error notice appears: Error: object 'value' not found - fix so that instead of error a warning saying "Select one or more variables to analyze in the left sidebar"

crtahlin commented 10 years ago

Implemented in e6cfc8f2e55dfbcde180ea5c10f5732e430da580 and 4d2b010078fe60d4c471a4ea049e583f239af02d.

dataFiltered() now only loads if at least one "symptom" is selected. If dataFiltered() is null, nothing is attempted to plot on any tab (except Debug). So, we get no errors. Added an generic warning message on the Sidebar when variables are not selected. (If we put messages on separate tabs, we need a separate message for each tab. I do not know why it is so, but it is harder to maintain, so I put the message on the sidebar.)