-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
147 lines (106 loc) · 4.83 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# textAnnotatoR: Interactive Text Annotation Tool for R
```{r, echo = FALSE, results='asis'}
cat("[![R-CMD-check](https://github.com/chaoliu-cl/textAnnotatoR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/chaoliu-cl/textAnnotatoR/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/textAnnotatoR)](https://CRAN.R-project.org/package=textAnnotatoR)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)")
```
## Overview
textAnnotatoR is a comprehensive text annotation tool built with Shiny, designed to facilitate qualitative data analysis through an intuitive graphical user interface. It provides researchers, analysts, and qualitative data scientists with a robust environment for coding text documents, managing code hierarchies, creating memos, and analyzing coding patterns. The package supports collaborative research through standardized annotation formats and provides powerful tools for comparing two coding sets, analyzing code co-occurrences, and visualizing coding patterns.
## Key Features
- Interactive text selection and annotation
- Hierarchical code organization with themes
- Real-time memo creation and linking
- Code co-occurrence analysis and visualization
- Multi-coder comparison tools
- Project management capabilities
- Export options for annotated text and analysis results
## Installation
You can install the development version of textAnnotatoR from GitHub using:
```{r eval=FALSE}
# Install textAnnotatoR
- From CRAN:
install.packages('textAnnotatoR')
- From Github:
remotes::install_github("chaoliu-cl/textAnnotatoR")
```
## Quick Start Example
Here's a basic example of how to launch the annotation interface and start coding your text:
```{r eval=FALSE}
library(textAnnotatoR)
# Launch the annotation interface
annotate_gui()
```
This will open the Shiny application in your default web browser. From there, you can:
1. Import your text document (supports .txt, .docx, and .pdf)
2. Select text using the cursor tool
3. Apply codes and create memos
4. Organize codes into themes
5. Analyze coding patterns and co-occurrences
```{r example-screenshot, echo=FALSE, eval=FALSE}
# You can include a screenshot of the interface here
knitr::include_graphics("man/figures/textAnnotatoR-interface.png")
```
## Package Components
The package is structured around several main components:
### Core Interface
- `annotate_gui()`: The main function that launches the interactive interface
- Project management tools for saving and loading annotation projects
- Text import and display functionality
### Code Management
- Hierarchical code organization with themes
- Code merging and renaming capabilities
- Color-coded visualization of annotations
### Analysis Tools
- Code frequency analysis
- Co-occurrence analysis with network and heatmap visualizations
- Pattern recognition for code sequences
- Multi-coder comparison tools
### Export Capabilities
- Export annotations in CSV or JSON format
- Save annotated text with highlighting
- Generate analysis reports and visualizations
## Documentation
For more detailed information, please refer to the package vignettes:
```{r eval=FALSE}
# View available vignettes
browseVignettes("textAnnotatoR")
```
Key vignettes include:
- Getting Started with textAnnotatoR
- Managing Code Hierarchies
- Analyzing Coding Patterns
- Comparing Multiple Coders
## Ecosystem Integration
textAnnotatoR is designed to work seamlessly with the broader R ecosystem for qualitative data analysis:
- Imports text from common document formats using `readtext`
- Utilizes `data.tree` for efficient hierarchy management
- Leverages `shiny` and `shinydashboard` for the interactive interface
- Integrates with `DT` for data display and manipulation
The package fills a gap in the R qualitative analysis ecosystem by providing a user-friendly GUI while maintaining programmatic access to all functionality.
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
## License
This project is licensed under the GPL-3 License - see the [LICENSE](LICENSE) file for details.
## Citation
If you use textAnnotatoR in your research, please cite it as:
```{r eval=FALSE}
citation("textAnnotatoR")
```
## Contact
* Issues: Please report issues on the [GitHub issues page](https://github.com/chaoliu-cl/textAnnotatoR/issues)
* Email: [email protected]
* X: [@X](https://x.com/ChaoLiu77600168)
```{r cleanup, include=FALSE}
# Clean up any temporary files or objects created during the README generation
```