Skip to content

Commit 445cd0a

Browse files
authored
Merge pull request #42 from drammock/1.0-7
version 1.0-7
2 parents 0cff63a + 612e3cd commit 445cd0a

File tree

7 files changed

+207
-142
lines changed

7 files changed

+207
-142
lines changed

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
.Rproj.user
33
extras
44
old-versions
5+
cache
6+
gists
57

68
index.html
9+
index_utf8.html
710
footer.html
811
knit_phonR.bash
912
phonR.pdf

DESCRIPTION

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Package: phonR
22
Type: Package
33
Title: Tools for Phoneticians and Phonologists
4-
Version: 1.0-6
5-
Date: 2015-06-22
4+
Version: 1.0-7
5+
Date: 2016-08-22
66
Author: Daniel R. McCloy
77
Maintainer: Daniel R. McCloy <[email protected]>
88
Depends: R (>= 2.10)
9-
Imports: splancs, deldir, plotrix
9+
Imports: splancs, deldir, plotrix, stats, grDevices, graphics
1010
Description: Tools for phoneticians and phonologists, including functions for normalization and plotting of vowels.
1111
License: GPL-3
1212
URL: http://drammock.github.io/phonR/
13-
BugReports: https://github.com/drammock/phonR/issues
13+
BugReports: https://github.com/drammock/phonR/issues
1414
LazyLoad: yes
1515
LazyData: yes

NAMESPACE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ export(repulsiveForce)
1717
export(repulsiveForceHeatmap)
1818
export(repulsiveForceHeatmapLegend)
1919
export(vowelMeansPolygonArea)
20+
import(graphics)
21+
import(grDevices)
22+
import(stats)

R/phonR.R

Lines changed: 178 additions & 120 deletions
Large diffs are not rendered by default.

inst/CITATION

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
citHeader("To cite package 'phonR' in publications use:")
22

3-
year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date, perl = TRUE)
3+
year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date, perl=TRUE)
44
vers <- paste("R package version", meta$Version)
55

66
citEntry(entry="Manual",
77
title = "phonR: tools for phoneticians and phonologists",
8-
author = personList(as.person("Daniel McCloy")),
8+
author = personList(as.person("Daniel R. McCloy")),
99
year = year,
1010
note = vers,
1111

1212
textVersion =
13-
paste("Daniel McCloy (",
14-
year,
13+
paste0("Daniel R. McCloy (", year,
1514
"). phonR: tools for phoneticians and phonologists. ",
16-
vers, ".", sep=""))
15+
vers, "."))

man/normVowels.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
normNearey2(f, group=NULL, exp=FALSE, ...)
2828
normSharedLogmean(f, group=NULL, exp=FALSE, ...)
2929
normWattFabricius(f, vowel, group=NULL)
30-
normVowels(method, f0=NULL, f1=NULL, f2=NULL, f3=NULL,
30+
normVowels(method, f0=NULL, f1=NULL, f2=NULL, f3=NULL,
3131
vowel=NULL, group=NULL, ...)
3232
}
3333
\arguments{
@@ -106,7 +106,7 @@ Glasberg, B. R., & Moore, B. C. J. 1990 \dQuote{Derivation of auditory filter sh
106106
107107
Lobanov, B. M. 1971 \dQuote{Classification of Russian vowels spoken by different speakers.} \emph{The Journal of the Acoustical Society of America}, 49(2), 606-608. \url{http://dx.doi.org/10.1121/1.1912396}
108108
109-
McCloy, D. R. 2012 \dQuote{Normalizing and plotting vowels with the phonR package.} \emph{Technical Reports of the UW Linguistic Phonetics Laboratory}. \url{http://depts.washington.edu/phonlab/pubs/McCloy2012_phonR.pdf}
109+
McCloy, D. R. 2012 \dQuote{Normalizing and plotting vowels with the phonR package.} \emph{Technical Reports of the UW Linguistic Phonetics Laboratory}. \url{http://dan.mccloy.info/pubs/McCloy2012_phonR.pdf}
110110
111111
Nearey, T. M. 1978 \dQuote{Phonetic feature systems for vowels} (Doctoral dissertation, University of Alberta). Reprinted by the Indiana University Linguistics Club. \url{http://www.ualberta.ca/~tnearey/Nearey1978_compressed.pdf}
112112

man/plotVowels.Rd

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
diph.mean.timept=1, diph.smooth=FALSE,
2323
heatmap=FALSE, heatmap.args=NULL,
2424
heatmap.legend=FALSE, heatmap.legend.args=NULL,
25-
var.col.by=NULL, var.style.by=NULL,
25+
var.col.by=NULL, var.sty.by=NULL,
2626
fill.opacity=0.3, label.las=NULL,
2727
legend.kwd=NULL, legend.args=NULL,
2828
pretty=FALSE, output='screen', ...)
@@ -59,8 +59,8 @@
5959
\item{hull.args,poly.args,ellipse.args}{Named list of arguments to be passed
6060
to \code{\link[graphics]{polygon}}.
6161
Useful for controlling line width,
62-
etc. See "Details" for notes about
63-
color handling.}
62+
etc. See \dQuote{Details} for notes
63+
about color handling.}
6464
\item{poly.line}{Logical; should a line be drawn tracing the polygon
6565
connecting the mean values for each vowel (separately for
6666
each level of \code{group})?}
@@ -74,10 +74,12 @@
7474
\item{ellipse.line}{Logical; should vowel density ellipses be drawn with an
7575
outer line?}
7676
\item{ellipse.fill}{Logical; should vowel density ellipses be filled?}
77-
\item{ellipse.conf}{Size of the ellipse (0,1] expressed as a confidence level
78-
(i.e., 0.95 gives a 95\% confidence ellipse). Defaults
79-
to a confidence level of 0.6827 (equivalent to
80-
plus-or-minus 1 sample standard deviation).}
77+
\item{ellipse.conf}{Numeric in range (0,1]; the size of the ellipse
78+
expressed as a confidence level of the estimate of the
79+
true mean (i.e., 0.95 gives a 95\% confidence ellipse).
80+
The default value (0.6827) corresponds to plus-or-minus
81+
one sample standard deviation along the major and minor
82+
axes of the bivariate normal density contour.}
8183
\item{diph.arrows}{Logical; should the last timepoint of each vowel be
8284
marked with an arrowhead?}
8385
\item{diph.args.tokens,diph.args.means}{List of named arguments to be passed
@@ -133,8 +135,8 @@
133135
a more complete description of the available arguments.}
134136
\item{var.col.by}{Vector or factor indicating the dimension along which to vary
135137
color.}
136-
\item{var.style.by}{Vector or factor indicating the dimension along which to
137-
vary linetype and plotting symbol.}
138+
\item{var.sty.by}{Vector or factor indicating the dimension along which to
139+
vary linetype and plotting symbol.}
138140
\item{fill.opacity}{Number in the range [0, 1] indicating the opacity of
139141
color fills for ellipses, hulls, and polygons (if drawn).
140142
Does not affect \code{force.heatmap} colors, which are
@@ -184,7 +186,7 @@ data(indoVowels)
184186
with(indo, plotVowels(f1, f2, vowel, group=gender, plot.means=TRUE,
185187
pch.means=vowel, ellipse.line=TRUE, poly.line=TRUE,
186188
poly.order=c('i','e','a','o','u'), var.col.by=vowel,
187-
var.style.by=gender, pretty=TRUE, alpha.tokens=0.3,
189+
var.sty.by=gender, pretty=TRUE, alpha.tokens=0.3,
188190
cex.means=2))
189191
# simulate some diphthongs
190192
f1delta <- sample(c(-10:-5, 5:15), nrow(indo), replace=TRUE)
@@ -202,7 +204,7 @@ indo <- within(indo, {
202204
with(indo, plotVowels(cbind(f1, f1a, f1b), cbind(f2, f2a, f2b), vowel,
203205
group=gender, plot.tokens=TRUE, pch.tokens=NA,
204206
alpha.tokens=0.3, plot.means=TRUE, pch.means=vowel,
205-
var.col.by=vowel, var.style.by=gender, pretty=TRUE,
207+
var.col.by=vowel, var.sty.by=gender, pretty=TRUE,
206208
diph.arrows=TRUE, diph.args.tokens=list(lwd=0.8),
207209
diph.args.means=list(lwd=2)))
208210
}

0 commit comments

Comments
 (0)