R Shiny app to evaluate solarchemist's Tauc plot algorithm https://shiny.solarchemist.se/uvvistauc-reactive/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Taha Ahmed 69bd2896f5
Show repro code example in text to allow copy-pasting
1 week ago
www
.Rprofile
.gitignore
LICENSE
README.md Show repro code example in text to allow copy-pasting 1 week ago
app.R Show repro code example in text to allow copy-pasting 1 week ago
renv.lock

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.