Skip to content

crtahlin/medplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

install.packages("devtools")

Make sure you install the development tools mentioned on the devtools web page. For MS Windows, this would be the Rtools package.

Perl has to be installed in order to enable importing of MS Excel files. For MS Windows, Strawberry perl should work. Reboot computer.

Load devtools and install packages from GitHub:

library(devtools)
install_github("crtahlin/medplot")

Running medplot localy

To run medplot:

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

About

Functions for drawing graphs in R visualizing medical information.

Resources

Stars

Watchers

Forks

Packages

No packages published