Closed llaarraa closed 10 years ago
I would put as default /first/ choice boxplots (or something that displays more quickly than profile plots).
Made the first choice some graphs that plot relatively quickly.
Updated the code to take into account binary variables. But then I noticed, that the binary graphs are always the same, regardless of the set threshold. Looking into it...
Terrible bug - for some reason the new plots with the new set threshold are not loaded in browser (although they are saved to disk). Maybe because the timestamp of the files does not change (why doesn't it?). It was confusing, because the screen goes blank while waiting for the plots - and I was sure it loads the new ones. But apparantly it has the old ones cached... :( I rewrote the code for the graphs, thinking it was something wrong with the data.
Anyway, I have a couple of ideas, that I will trey later (deleting the graphs each time? although we don't wat that either...)
Fixed. Tempfiles with graphs are put into /www/temp directory, which is purged when shiny server starts (it cannot be purged right after graph generation, since the graphs then don't load into the browser). This works relatively OK, although some files on my machine are currently "locked" and cannot be deleted. But that will probably go away with system restart.
The filenames are now random, increasing security and bypassing the problem of another user loading the same graph is the app is used concurently. It think this is an acceptable solution, because the graphs do not contain any patient identifiable information and the filenames cannot be guessed.
I also changed the legend when plotting binary vars to display only two levels.
In demo data: if I select to analyze data as binary variables the lasagna plots obtained from numerical variables are displayed.