Question: Add annotation color bar to ggplot or ggvis barplot
1
gravatar for yuezh
12 months ago by
yuezh10
yuezh10 wrote:

Does anyone know how to add an annotation color bar to a ggplot or ggvis/plotly/... barplot?

An example would be like "Heatmap 1" below, with a color bar (blue and red) representing sample information as type a or type b:

An example of adding annotation color bar

plotly ggvis visualization ggplot R • 1.3k views
ADD COMMENTlink modified 12 months ago by arta540 • written 12 months ago by yuezh10

can you post some example data?

ADD REPLYlink written 12 months ago by cpad011210k
0
gravatar for Hussain Ather
12 months ago by
Hussain Ather890
National Institutes of Health, Bethesda, MD
Hussain Ather890 wrote:

See heatmap annotations https://bioconductor.org/packages/3.7/bioc/vignettes/ComplexHeatmap/inst/doc/s4.heatmap_annotation.html

ADD COMMENTlink written 12 months ago by Hussain Ather890

Thanks! But this method only applies to ComplexHeatmap, do we have something similar in ggplot2/Rplotly/ggvis..?

ADD REPLYlink written 12 months ago by yuezh10
0
gravatar for arta
12 months ago by
arta540
Sweden
arta540 wrote:

You can use aheatmap package.

ADD COMMENTlink written 12 months ago by arta540
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1147 users visited in the last hour