knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.width = 7, fig.height = 5, fig.align = 'center', fig.path = "/man/figures/" ) library(textAnnotatoR)
The Text Annotation Interface provides a comprehensive environment for qualitative data analysis through text annotation. This vignette will guide you through using the interface effectively, from basic text annotation to advanced features like code hierarchies and comparative analysis.
To start using the text annotation interface, simply call the annotate_gui()
function:
library(textAnnotatoR) annotate_gui()
This will open the Shiny application in your default web browser. The interface is divided into several tabs, each offering different functionality for your annotation work.
knitr::include_graphics("../man/figures/interface_overview.png")
The interface consists of:
knitr::include_graphics("../man/figures/new_project.png")
knitr::include_graphics("../man/figures/file_import.png")
# Example of code application via the API (if available) annotate_text(selected_text, code = "important_theme")
The "Themes" tab allows you to organize your codes hierarchically:
# Example of code hierarchy structure codes <- list( "Methods" = c("Qualitative", "Quantitative"), "Results" = c("Findings", "Discussion") )
# Example of code merging logic merge_codes(c("code1", "code2"), new_code = "merged_code")
# Example of frequency analysis analyze_code_frequency(annotations)
knitr::include_graphics("../man/figures/co_occurrence.png")
Generate basic statistics about your text and annotations:
# Example of summary statistics summary_stats <- analyze_text(text, annotations) print(summary_stats)
The comparison tab allows you to analyze coding patterns between different coders:
# Example of saving annotations save_annotations(annotations, "output.csv")
The Text Annotation Interface provides a robust environment for qualitative data analysis. By following this guide and exploring the various features, you can develop an efficient workflow for your annotation projects. Remember to:
Note: This vignette reflects the current version of the Text Annotation Interface. Features may be updated or changed in future versions.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.