The pineplot package can be used to generate pine plots, which are stacked triangular heat maps that are generated using the visualization capabilities of ggplot2 and rotation from grid. Visualizing symmetric matrices in this way has the following benefits:
The paper will be available soon.
Brain Tissue | Liver Tissue | Kidney Tissue
:-------------------------:|:-------------------------:|:-------------------------:
|
|
The R package devtools can be used to install this package. If you do not have devtools, it can be installed and loaded using the following commands.
install.packages("devtools")
library(devtools)
Next, install pineplot and load the package.
install_github("klovens/pineplot", build_vignettes =TRUE)
library(pineplot)
Examples and code demonstrating some of the different uses for pineplot are available in the vignettes.
vignette("pineplot")
vignette("cleveland_heart_disease")
vignette("liver")
This package requires that ggplot2 (>= 3.0.0), grid, gridExtra (>= 2.3), reshape2 (>= 1.4.3), and gtable are installed. We also suggest knitr, magick, rmarkdown, and testthat (>= 2.1.0) in order to run all examples and tests.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.