crtahlin / medplot

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

making the results downloadable #49

Open llaarraa opened 10 years ago

llaarraa commented 10 years ago

what is downloadable? Should we make some of the results explicity downloadable. Or just say in the paper that the user can copy the outputs? We will have to mention it in the paper

crtahlin commented 10 years ago

What is downloadable: As is at the moment, images should be downloadable by "save as" (or "copy-paste", although that does not seem to work "at the moment").

If I remember correctly, images could be made downloadable, I am not sure about tables. Unless we make some kind of PDF file. We could try to make at least some of the results downloadable, as a demonstration of shinyness via a button. Which part would be the best candidate for starters - the RCS tab which contains quite dynamic pictures?

crtahlin commented 10 years ago

Been thinking - outputing a report makes sense only if we want to make an archive of it or maybe use some of the outputs in a printed article.

Since we are in a digital age, we could expose the usability of shiny on tablets? I have just tried how it looks an an Android tab, and it looks quite good. (The ultra old version on shiny.mf.uni-lj.si). Don't know how to do that best, though. A photo?

crtahlin commented 10 years ago

Suggestion from presentation 9th Apr 2014: make a report from all the results.

Try using markdown or maybe a PDF. Could be shown on a separate tab - Results?

crtahlin commented 10 years ago

On second thought, the report should either be generated from each tab for that tab OR from the sidebar using the options selected on the sidebar and all possible options for each. I think the second option is not feasible, since we do not know what kind of options the use will choose on each tab. So, generating the report from each tab is the feasible option.

llaarraa commented 10 years ago

A simple variant would be a button saying "save the output" in each page, which saves the page as it is (in html) locally. Has anybody done it in other apps?

crtahlin commented 10 years ago

Update: This is perhaps a viable alternative, when it becomes available: http://rmarkdown.rstudio.com/authoring_shiny.html

But it will probably require some rewrites of the code into Markdown format (RMD) and separate files? Need to recheck later.

Note: I again tested the option of File->Save as and it actually kind of works, since the Plots are saved inside the HTML. It is not pretty though, since it has the menus and all. Although the user probably will never use the report in exactly the same form as on the web, but will copy-paste from it, so it does not really matter, I guess.