pf.heatmap | R Documentation |
Heatmap for phylofactor data
pf.heatmap(PF = NULL, tree = NULL, Data = NULL, factors = NULL,
column.order = NULL, branch.length = "none", color = NA,
font.size = 0, ...)
PF |
phylofactor class object from either |
tree |
optional input, only used if |
Data |
Dataset with rows equal to the number of species. Ideally, rownames are all equal to |
factors |
vector of integer factors for input with |
column.order |
vector of integers of length equal to |
branch.length |
input for |
color |
input |
font.size |
font size for |
... |
additional arguments passed to |
library(phylofactor)
require(ggpubr)
data(FTmicrobiome)
PF <- FTmicrobiome$PF
obs <- PF$transform.fcn(PF$Data)
pred <- predict(PF,factor=3)
observed <- pf.heatmap(PF,Data=obs,factors=1:3,width=3)
predicted <- pf.heatmap(PF,Data=pred,factors=1:3,width=3)
ggarrange(observed,predicted,nrow=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.