Scientific research is filled with complex datasets which may be understood and communicated using data visualization techniques. The BoutrosLab.plotting.general (BPG) package creates publication-ready figures which are reproduceable, highly customizable, and useful for both interim analysis and communication of data.



  • R (>= 3.0.2)
  • grid
  • lattice (>= 0.20-27)
  • latticeExtra (>= 0.6-26)
  • MASS(>= 7.3-29)
  • cluster (>= 1.14.4)
  • hexbin (>= 1.26.3)


To install in an interactive R session, do the following:
install.packages("BoutrosLab.plotting.general", type = "source", repos = "http://bpg.oicr.on.ca")
This will install BoutrosLab.plotting.general and it's dependencies from our miniCRAN repository.

Mac users will need to do the following before installing the package in R:
  • Ensure that your Xcode license is accepted with the following command:
    sudo xcodebuild --license
  • If fortran is not installed, install it with the following commands:
    curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2
    sudo tar fvxz gfortran-4.8.2-darwin13.tar.bz2 -C /
  • Set up your active developer directory for Xcode and BSD tools:
    xcode-select --install


A detailed description of all functions and their parameters can be found in the API.


An interactive interface for generating plots with BoutrosLab.plotting.general is available at bpg.oicr.on.ca.


Here is a selection of figures created using the BoutrosLab.plotting.general package.