R Shiny app to evaluate solarchemist's Tauc plot algorithm https://shiny.solarchemist.se/uvvistauc-reactive/
 
 
Go to file
Taha Ahmed 580141bd28 Better description of each example spectrum in the README
+ added a screenshot of example spectrum (as it looks in the app)
2023-06-08 11:12:40 +02:00
www Better description of each example spectrum in the README 2023-06-08 11:12:40 +02:00
.Rprofile Works! Not all plot elements in place yet, and a bit slow, 2022-11-28 23:58:50 +01:00
.gitignore Works! Not all plot elements in place yet, and a bit slow, 2022-11-28 23:58:50 +01:00
LICENSE Works! Not all plot elements in place yet, and a bit slow, 2022-11-28 23:58:50 +01:00
README.md Show repro code example in text to allow copy-pasting 2023-01-19 04:23:08 +01:00
app.R Now includes example spectra! And input field "r" to slider. 2023-06-06 05:01:40 +02:00
renv.lock Figured out a way to hide the Abs plot once the Tauc plot is created 2022-12-01 05:38:47 +01:00

README.md

Behind the scenes of the interactive Tauc plot evaluator

The Tauc fitting algorithm in uvvistauc::tauc() can be fragile and return errors if the input parameters don't make sense for the UV-Vis spectrum in question.

In the first iteration of this reactive app (which immediately called tauc() with whatever parameters were set in the app), this frequently led to the user being met by an irrelevant error message in red text instead of a plot.

I considered using shinyglide to achieve the same effect, but I think hiding/showing (or otherwise drawing over) the plot is simpler and I'm happy that this approach worked out.

With the current implementation, observeEvent(input$file1, {...}) combined with observeEvent(input$buttonTauc, {...}), when uploading new data in the same session the previous Tauc plot re-appears briefly before being replaced by the correct one. I can live with this, but ideally we should address this issue.