plot_directional: Plot Verifit on-ear or testbox directional results

Description Usage Arguments Value Examples

Description

Takes the data frame returned by XXXdirectional_to_df and plots the data using ggplot2. Data are plotted on a logx scale with color coding for stimulus level. The function can be configured to either average across ears or separate the ears into facets.

Usage

1
2
3
plot_directional(x, separate.ears = FALSE, main.title = NULL,
  plot.tests = c(1, 2, 3, 4), separate.tests = FALSE,
  test.labs = c("Test 1", "Test 2", "Test 3", "Test 4"))

Arguments

x

A data frame of Verifit on-ear or testbox directional data, as returned from XXXdirectional_to_df

separate.ears

An optional boolean value to indicate if ears should be plotted separately in facets (TRUE) or averaged in a single plot (FALSE).

main.title

An optional string that will be used as a main title, if present.

plot.tests

A numeric vector corresponding to which tests should be included in the plot. If used with separate.tests = TRUE, the vector passed to test.labs must match plot.tests in length. Note that this argument should be numeric, while the data frame returned from XXXdirectional_to_df labels tests with a string (e.g., 'test1', test2').

separate.tests

An optional boolean value to indicate if test runs should be plotted separately in facets (TRUE) or averaged in a single plot (FALSE). This is convenient if multiple directional settings were used during the test.

test.labs

A vector of strings used to label test facets. Only required if separate.tests = TRUE.

Value

A ggplot2 plot of the data in x.

Examples

1
2
3
4
5
## Not run: 
df <- remdirectional_to_df(speechmap.xml)
plot_remdirectional(df)

## End(Not run)

kevindsp/verifitr documentation built on May 9, 2019, 8:09 p.m.