Question: Add annotation color bar to ggplot or ggvis barplot
1
gravatar for yuezh
6 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 6 months ago by arta480 • written 6 months ago by yuezh10

can you post some example data?

ADD REPLYlink written 6 months ago by cpad01126.3k
0
gravatar for Hussain Ather
6 months ago by
Hussain Ather860
National Institutes of Health, Bethesda, MD
Hussain Ather860 wrote:

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

ADD COMMENTlink written 6 months ago by Hussain Ather860

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

ADD REPLYlink written 6 months ago by yuezh10
0
gravatar for arta
6 months ago by
arta480
Sweden
arta480 wrote:

You can use aheatmap package.

ADD COMMENTlink written 6 months ago by arta480
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: 968 users visited in the last hour