powered by
Transfer dist to b_dist
Plot dist
Plot b_dist
as.b_dist(dist, group_df = NULL)# S3 method for dist plot(x, group_df = NULL, ...)# S3 method for b_dist plot(x, mode = 1, c_group = "inter", ...)
# S3 method for dist plot(x, group_df = NULL, ...)
# S3 method for b_dist plot(x, mode = 1, c_group = "inter", ...)
a b_dist with annotation by group
a pheatmap
a ggplot or pheatmap
a dist object
a dataframe with rowname same to dist and one group column
a b_dist
additional
1~3
"inter" or "intra" or both to plot
data(otutab, package = "pcutils") mat_dist(otutab) %>% as.b_dist(., group_df = metadata["Group"]) -> aa plot(aa) plot(aa, mode = 2)
Run the code above in your browser using DataLab