Graph Data

Data can be plotted and used for analysis in several ways.  One can use the Shiny App to take a quick look at the absorbance data and the contents of the database.  No downloading of data is needed to use the interactive Shiny App.

Alternatively, one can download the data and then plot and analyze it within any appropriate software. Example scripts for loading and graphing data within Matlab are provided below.  These can be modified to meet the user’s goals.

Plot in real time with Shiny App

Use our Shiny App to select and plot specific data from the dataset.  This is a good way to explore the database and to check data that you export and plot outside of the database.

Plot data in Matlab

The example MATLAB codes below demonstrate how to plot absorbance, Zmag, and Zang for different types of datasets from this database. The script can be modified to look at other datasets of a similar type. The script requires you to tell it how to access the data from the database, further detailed at Download Data.  

EITHER:

(1) Download most up to date data (directly from database) via MySQL Workbench and save Measurements.csv in the same folder as the .m script.

OR

(2) Download data directly from here (saved on date in file name) and save the file in the same folder as the .m script. 

Measurements table: WAI_Measurements_Jan202021.csv

Subjects table: WAI_Subjects_Jan202021.csv

Example 1: One session, one ear

Demonstrates how to plot the mean absorbance, mean Zmag, and mean Zang for a dataset that has one session per subject and one ear per session. The two codes show two different ways to accomplish the same task.

ExampleMATLABcode_Sun_Oct2020.m     OR     ExampleMATLABcode_Groon_Oct2020.m

Example 2: Multiple sessions, split by right/left ear

Demonstrates how to plot the mean absorbance, mean Zmag, and mean Zang for a dataset that has multiple sessions and the data is split by right/left ears.

ExampleMATLABcode_Abur_Oct2020.m

Example 3: Multiple sessions, different sweep directions, split by ages

Demonstrates how to plot the mean absorbance, mean Zmag, and mean Zang for a dataset that has multiple sessions, multiple sweep directions, and the data is split by age groups.

ExampleMATLABcode_Hunter_Oct2020.m

Example 4: Multiple ear pathologies, different sweep directions, one session

Demonstrates how to plot the mean absorbance, mean Zmag, and mean Zang for a dataset that includes multiple different ear pathologies, sweep directions, and has one session for each subject.

ExampleMATLABcode_Keefe2017_Oct2020.m

Example 5: Incorporating the Subject Table, one session, split by male/female

Demonstrates how to plot the mean absorbance, mean Zmag, mean Zang with the data split by male/female, thereby incorporating the Subject Table.

ExampleMATLABcode_Rosowski_Oct2020.m

Example 6: Individual Subjects, Multiple sessions, split by right/left ear

Demonstrates how to plot each of the sessions of the individual subjects split by right/left ear. Plots absorbance, Zmag, and Zang.

ExampleMATLABcode_Abur_Indv_Oct2020.m