Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.3%) to scientific vocabulary
Repository
tidy vowel normalization
Basic Info
- Host: GitHub
- Owner: JoFrhwld
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://jofrhwld.github.io/tidynorm/
- Size: 17.7 MB
Statistics
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
- Releases: 1
Metadata Files
README.md
tidynorm 
The goal of {tidynorm} is to provide convenient and tidy functions to
normalize vowel formant data.
Installation
You can install tidynorm like so
r
install.packages("tidynorm")
You can install the development version of tidynorm like so:
``` r
if you need to install remotes
install.packages("remotes")
remotes::install_github("jofrhwld/tidynorm") ```
Example
Vowel formant frequencies are heavily influenced by vocal tract length differences between speakers. Equivalent vowels between speakers can have dramatically different frequency locations.
r
library(tidynorm)
library(ggplot2)
Plotting Options
``` r options( ggplot2.discrete.colour = c( lapply( 1:6, \(x) c( "#4477AA", "#EE6677", "#228833", "#CCBB44", "#66CCEE", "#AA3377" )[1:x] ) ), ggplot2.discrete.fill = c( lapply( 1:6, \(x) c( "#4477AA", "#EE6677", "#228833", "#CCBB44", "#66CCEE", "#AA3377" )[1:x] ) ) ) theme_set( theme_minimal( base_size = 16 ) ) ```Plotting Code
``` r ggplot( speaker_data, aes( F2, F1, color = speaker ) ) + ggdensity::stat_hdr( probs = c(0.95, 0.8, 0.5), alpha = 1, fill = NA, linewidth = 1 ) + scale_x_reverse() + scale_y_reverse() + coord_fixed() + labs( title = "unnormalized" ) ```
The goal of {tidynorm} is to provide tidyverse-friendly and familiar
functions that will allow you to quickly normalize vowel formant data.
There are a number of built in functions based on conventional
normalization methods.
r
speaker_data |>
norm_nearey(
F1:F3,
.by = speaker,
.names = "{.formant}_nearey"
) ->
speaker_normalized
#> Normalization info
#> • normalized with `tidynorm::norm_nearey()`
#> • normalized `F1`, `F2`, and `F3`
#> • normalized values in `F1_nearey`, `F2_nearey`, and `F3_nearey`
#> • grouped by `speaker`
#> • within formant: FALSE
#> • (.formant - mean(.formant, na.rm = T))/(1)
Plotting Code
``` r speaker_normalized |> ggplot( aes( F2_nearey, F1_nearey, color = speaker ) ) + ggdensity::stat_hdr( probs = c(0.95, 0.8, 0.5), alpha = 1, fill = NA, linewidth = 1 ) + scale_x_reverse() + scale_y_reverse() + coord_fixed() + labs( title = "Nearey Normalized" ) ```
There is also a tidynorm::norm_generic() function to allow you to
define your own bespoke normalization methods. For example, a “robust
Nearey” normalization method using the median, instead of the mean,
could be done like so.
r
speaker_rnearey <- speaker_data |>
norm_generic(
F1:F3,
.by = speaker,
.by_formant = FALSE,
.pre_trans = log,
.L = median(.formant, na.rm = T),
.names = "{.formant}_rnearey"
)
#> Normalization info
#> • normalized with `tidynorm::norm_generic()`
#> • normalized `F1`, `F2`, and `F3`
#> • normalized values in `F1_rnearey`, `F2_rnearey`, and `F3_rnearey`
#> • grouped by `speaker`
#> • within formant: FALSE
#> • (.formant - median(.formant, na.rm = T))/(1)
Plotting Code
``` r speaker_rnearey |> ggplot( aes( F2_rnearey, F1_rnearey, color = speaker ) ) + ggdensity::stat_hdr( probs = c(0.95, 0.8, 0.5), alpha = 1, fill = NA, linewidth = 1 ) + scale_x_reverse() + scale_y_reverse() + coord_fixed() + labs( title = "Robust Nearey Normalized" ) ```
Owner
- Name: Josef Fruehwald
- Login: JoFrhwld
- Kind: user
- Company: University of Kentucky
- Website: jofrhwld.github.io
- Twitter: jofrhwld
- Repositories: 116
- Profile: https://github.com/JoFrhwld
GitHub Events
Total
- Issues event: 10
- Watch event: 2
- Issue comment event: 4
- Push event: 91
- Pull request event: 14
- Create event: 8
Last Year
- Issues event: 10
- Watch event: 2
- Issue comment event: 4
- Push event: 91
- Pull request event: 14
- Create event: 8
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 6
- Total pull requests: 4
- Average time to close issues: 3 days
- Average time to close pull requests: about 6 hours
- Total issue authors: 2
- Total pull request authors: 1
- Average comments per issue: 0.67
- Average comments per pull request: 0.0
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 6
- Pull requests: 4
- Average time to close issues: 3 days
- Average time to close pull requests: about 6 hours
- Issue authors: 2
- Pull request authors: 1
- Average comments per issue: 0.67
- Average comments per pull request: 0.0
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- JoFrhwld (3)
- JoeyStanley (3)
Pull Request Authors
- JoFrhwld (8)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 187 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: tidynorm
Tools for Tidy Vowel Normalization
- Homepage: https://jofrhwld.github.io/tidynorm/
- Documentation: http://cran.r-project.org/web/packages/tidynorm/tidynorm.pdf
- License: GPL (≥ 3)
-
Latest release: 0.3.0
published about 1 year ago
Rankings
Maintainers (1)
Dependencies
- dplyr * imports
- glue * imports
- rlang * imports
- stringr * imports
- tidyr * imports
- tidyselect * imports
- actions/checkout v4 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite