Add annotation color bar to ggplot or ggvis barplot
2
1
Entering edit mode
6.6 years ago
yuezh ▴ 10

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

R ggplot ggvis plotly visualization • 10k views
ADD COMMENT
0
Entering edit mode

can you post some example data?

ADD REPLY
0
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

Did you find some good methods? I have met the same question

ADD REPLY
0
Entering edit mode
6.6 years ago
arta ▴ 670

You can use aheatmap package.

ADD COMMENT

Login before adding your answer.

Traffic: 3196 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6