Question: Add annotation color bar to ggplot or ggvis barplot
1
gravatar for yuezh
9 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

ADD COMMENTlink modified 9 months ago by arta540 • written 9 months ago by yuezh10

can you post some example data?

ADD REPLYlink written 9 months ago by cpad01129.0k
0
gravatar for Hussain Ather
9 months ago by
Hussain Ather880
National Institutes of Health, Bethesda, MD
Hussain Ather880 wrote:

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

ADD COMMENTlink written 9 months ago by Hussain Ather880

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

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

You can use aheatmap package.

ADD COMMENTlink written 9 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: 1553 users visited in the last hour