R code to plot audiogram data. Main code: audiogramR.R
audiogramR(DataFile,SaveAs,ExperimentalGroup,ControlGroup)
DataFile = name of your .csv data file (contained in the same folder as this script)
SaveAs = file extension of the saved audiogram figure (e.g. tiff, jpg, pdf)
ExperimentalGroup = name of your experimental group (can be left empty)
ControlGroup = name of your control group (can be left empty)
Load the audiogramR function by typing source("audiogramR") in the command line.
Note that all parameters should be in inverted commas. For example: audiogramR("ExampleData","pdf","patient","control")