Copyright 2018 Mohamed El Idrissi. Licensed under the MIT license.
TextGridShiny allows to read TextGrid files, from the software PRAAT, and to display annotations describing representations of sound recordings. In addition, it is possible to interact with the created visual annotation by adding tiers and labels. Note that this package is in development.
TextGridShiny
is available through both CRAN and GitHub:
To install the stable CRAN version:
install.packages("TextGridShiny")
To install the latest development version from GitHub:
install.packages("devtools")
devtools::install_github("buhem/TextGridShiny")
This widget allows the user to interact with it. You can easily add tiers or change the items' text. For that, you need to double-click on an item. Then a dialog box opens displaying the choices in question.
Plus, it lets you remove or add labels which can be positioned on the timeline at the place chosen to annotate your data. The width of the item can be manually adjusted and resized. The removal of a label can be realized by clicking on the cross icon who appears if you select the item. But a label is added by double-clicking in an empty space on the tier.
TextGridShiny offers the possibility of being connected to a Shiny app by adding TextGridShinyOutput()
inside the UI function and renderTextGridShiny(TextGridShiny())
inside the server function.
R Markdown can create a HTML document and you can include in it Shiny packages. For invoking them, you need to indicate at the beggining of the document, in the front-matter, the fact that you are going to use Shiny.
---
runtime: shiny
---
Then merely put down in the chunk these lines of code.
```{r, echo=FALSE} library(TextGridShiny) renderTextGridShiny(TextGridShiny()) ```
Click here to view a live demo of TextGridShiny.
For now, the dialog box doesn't work in some OS' like iOS.