Home •Search •Dr. Hain •Clinic website •Information for Dizzy Patients •Music •FLW • Various and Sundry |

R is an immensely popular and powerful programming language, that seems to be a viable alternative to Matlab for many data analysis tasks. Dr. Hain decided to learn R to produce graphics from his large collection of clinical data stored in a mysql database.

- R is open source. The beauty of R is that it is
*open source*. The problem of R is that it is*open source*. To expand on this, R is IMMENSE, there are a gigantic number of contributed packages.- There are MANY ways to do almost ANYTHING in R. For example, R has 4 different graphics systems (we will just consider the "base" graphics and ggplot2).
- R is lightly documented -- the way you do things in R is to google them up.
- R is complicated -- it operates on vectors (or matrices), and these sorts of programs are tricky.

- R is a "Matlab" competitor. Matlab is a similar language, also largely based at MIT, that also operates on vectors (or matrices). Matlab is not "Open source". It is pretty much locked down. You pay lots of money to keep it running. Even if you bought the program, the licencing manager stops you from using it on two different computers (i.e. your work computer and home computer).

- Restructing tabular data from wide to long format so R can plot it out.
- Time series:
- PTA (pure tone averages) for audiograms.
- time series of audiograms. (We do this, but haven't gotten to putting the somewhat complex code up here)
- VHIT tests

- Plotting posturography data
- Plotting rotatory chair data

© Copyright February 28, 2021 , Timothy C. Hain, M.D. All rights reserved. |