README.md

medplot R package

Functions for visualizing and analyzing medical data in R - primarily longitudinal epidemiologic data.

You can find the Excel template file (to use with the medplot shiny app) in the folder:

/inst/extdata/PlotSymptoms_shiny.xlsx

And the Tab Separated Values template file in the folder:

/inst/extdata/PlotSymptoms_TemplateTSV.txt

Docker installation

Medplot package is contained in a docker image located at: https://hub.docker.com/r/crtahlin/medplot/

Make sure you have docker installed. Instructions for various platforms can be found on: https://docs.docker.com/engine/installation/

Run the docker container (it is automatically downloaded) by running the following in a shell:

sudo docker run -d -p 3838:3838 crtahlin/medplot

Open your browser and connect to: http://localhost:3838/shinyapp_symptoms2/

Medplot app should open in your browser.

General installation instructions for the medplot package

After installing the R programming language, use the console in R to install the devtools package:

```{r, eval=FALSE} install.packages("devtools")


Make sure you install the development tools mentioned on the [devtools web page](http://www.rstudio.com/products/rpackages/devtools/). For MS Windows, this would be the [Rtools package](http://cran.r-project.org/bin/windows/Rtools/). 

Perl has to be installed in order to enable importing of MS Excel files. For MS Windows, [Strawberry perl](http://www.perl.org/get.html) should work. Reboot computer.

Load devtools and install packages from GitHub:

```{r, eval=FALSE}
library(devtools)
install_github("crtahlin/medplot")

Running medplot localy

To run medplot: {r, eval=FALSE} library(medplot) medplotOnline()

This should open the application in a web browser.

Troubleshooting Linux installation

Some specific problems arose while installing on Linux (Ubuntu 14.04). Solutions are listed below.

Prerequisite for the devtools package - use terminal to:

 sudo apt-get install libcurl4-openssl-dev

Prerequisite for the Cairo & medplot packages - use terminal to:

 sudo apt-get install libcairo2-dev
 sudo apt-get install libxt-dev

as described in http://stackoverflow.com/questions/16678934/r-cairo-installation-without-apt-get-sudo

Prerequisite for the XML & medplot package - use terminal to:

 sudo apt-get install r-cran-xml

as described in http://stackoverflow.com/questions/7765429/unable-to-install-r-package-in-ubuntu-11-04



crtahlin/medplot documentation built on May 14, 2019, 12:05 p.m.