el-meyer / airship

AIRSHIP - An Interactive R-SHIny apP for visualizing tidy long data
https://el-meyer.github.io/airship/
GNU General Public License v3.0
3 stars 2 forks source link

Improve created ggplot code styling #129

Open el-meyer opened 7 months ago

berryni commented 7 months ago

The current process for using the ggplot code is something like: Click download data, copy ggplot code, open Rscript, paste ggplot code, add line to read in downloaded data, run. I think that's fine.

It might be nice in the future if we could provide code that reads in the original data file, filters/processes it as airship does, and shows that code to the user. Then the process of recreating a plot in R would be - copy code, open Rscript, run.

The current plot code is in the middle of the page - if it gets longer and includes filtering and the read function we would probably want to move it. I am envisioning a blank flyout on the right hand side of the plot screen that is minimized by default, but if you click to expand it shows the code. Something that's a little hidden by default, and you can expand to see the code.