Publications by R on Guangchuang Yu
ggtree for outbreak data
OutbreakTools implements basic tools for the analysis of Disease Outbreaks. It defines S4 class obkData to store case-base outbreak data. It also provides a function, plotggphy, to visualize such data on the phylogenetic tree. library(OutbreakTools) data(FluH1N1pdm2009) attach(FluH1N1pdm2009) x <- new("obkData", individuals = individuals, dna = ...
1443 sym R (595 sym/2 pcs) 4 img
reproducible logo generated by ggtree
ggtree provides many helper functions for manupulating phylogenetic trees and make it easy to explore tree structure visually. Here, as examples, I used ggtree to draw capital character G and C, which are first letter of my name :-). To draw a tree in such shape, we need fan layout (circular layout with open angle) and then rotating the tree to l...
1184 sym R (960 sym/2 pcs) 4 img
[Bioc 34] NEWS of my BioC packages
I have 7 packages published within the Bioconductor project. ChIPseeker clusterProfiler DOSE ggtree GOSemSim meshes ReactomePA A new package meshes was included in BioC 3.4 release. ChIPseeker For ChIPseeker, this release fixed several minor bugs. GEO data was updated, now ChIPseeker contains 20947 bed file information. CHANGES IN VERSION 1.9.8...
6134 sym Python (15131 sym/7 pcs)
facet_plot: a general solution to associate data with phylogenetic tree
ggtree provides gheatmap for visualizing heatmap with phylogenetic tree and msaplot for visualizing multiple sequence alignment with phylogenetic tree. We may have different data types and want to visualize and align them with the tree. For example, dotplot of SNP site (e.g. using geom_point(shape='|')), barplot of trait values (e.g. using geom_b...
1846 sym R (1068 sym/3 pcs) 6 img
xlim_tree: set x axis limits for only Tree panel
A ggtree user recently asked me the following question in google group: I try to plot long tip labels in ggtree and usually adjust them using xlim(), however when creating a facet_plot xlim affects all plots and minimizes them. Is it possible to work around this and only affect the tree and it’s tip labels leaving the other plots in facet_plot...
1516 sym R (703 sym/3 pcs) 6 img
showCategory parameter for visualizing compareCluster output
I am using dotplot() to visualize results from enrichGO(), enrichDO(), enricher() and compareCluster() in clusterProfiler R package. When specifying showCategory, I get the right number of categories except with the results of compareCluser(). In my case, I use compareCluster() on a list of 3 elements: str(ClusterList) List of 3 $ All : chr [1:1...
2631 sym R (578 sym/2 pcs) 2 img
align genomic features with phylogenetic tree
A question on biostars asking how to generate the following figure: This can be quite easy to implement in ggtree, I can write a geom layer to layout the alignment. As ggbio already provides many geom for genomic data and I don’t want to re-invent the wheel, I decided to try ggtree+ggbio. This is also the beauty of R that packages complete eac...
1959 sym R (3039 sym/4 pcs) 8 img
align genomic features with phylogenetic tree
A question on biostars asking how to generate the following figure: This can be quite easy to implement in ggtree, I can write a geom layer to layout the alignment. As ggbio already provides many geom for genomic data and I don’t want to re-invent the wheel, I decided to try ggtree+ggbio. This is also the beauty of R that packages complete eac...
1958 sym R (3039 sym/4 pcs) 8 img
scatterpie for plotting pies on ggplot
Plotting pies on ggplot/ggmap is not an easy task, as ggplot2 doesn’t provide native pie geom. The pie we produced in ggplot2 is actually a barplot transform to polar coordination. This make it difficult if we want to produce a map like the above screenshot, which was posted by Tyler Rinker, the author of R package pacman. The question remaine...
1961 sym R (1328 sym/2 pcs) 6 img
scatterpie for plotting pies on ggplot
Plotting pies on ggplot/ggmap is not an easy task, as ggplot2 doesn’t provide native pie geom. The pie we produced in ggplot2 is actually a barplot transform to polar coordination. This make it difficult if we want to produce a map like the above screenshot, which was posted by Tyler Rinker, the author of R package pacman. The question remaine...
1952 sym R (1328 sym/2 pcs) 6 img