kaitlynstrickfaden / camTS

A Shiny app for visualizing image data as a time series.
Other
0 stars 0 forks source link

Use arrow keys to move through data #4

Open ihellman opened 3 years ago

ihellman commented 3 years ago

Moving back and forth through data with arrow keys (Left/right or up/down) would be much easier than having to click individual points.

kaitlynstrickfaden commented 3 years ago

Plotly doesn't do arrows; it can handle hovers, clicks, and selections. Timelapse lets you use your arrow keys to navigate through photos, but it won't give you a time series plot.

ihellman commented 3 years ago

Some hacky ideas with zero testing:

kaitlynstrickfaden commented 3 years ago

A text slider could work as long as the slider isn't forced to display every unique value (that could get a bit cluttered with several thousand file paths to images). The other option is to use a numeric slider and a little string-parsing magic provided you're willing to spend a little time renaming images in a standardized way (e.g. the example images in this repository are "0001.jpg" - "0194.jpg"). If I recall correctly, you guys are changing out memory cards each time you visit the flume sites, and each time you turn off the camera or change the memory card, a new folder gets created and the image naming restarts at one. Might be a bit of a programming nightmare to deal with that many separate folders and repeated file names for each camera. This is the batch renaming software I use: https://www.den4b.com/products/renamer .

I'm also assuming you still want to retain the click functionality? Hopefully it doesn't get too complicated to make the highlighted/clicked point and slider value match up - guess I'll find out at some point...