Groups
Groups
Sign in
Groups
Groups
ggplot2
Conversations
About
Send feedback
Help
Question: Add annotation color bar to ggplot or ggvis barplot
26 views
Skip to first unread message
Jason
unread,
Dec 21, 2017, 6:22:18 AM
12/21/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ggplot2
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:

Kieron Scully
unread,
Dec 23, 2017, 4:11:43 AM
12/23/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ggplot2
I think this is what you want and then some:
https://bioconductor.org/packages/3.7/bioc/vignettes/ComplexHeatmap/inst/doc/s4.heatmap_annotation.html
It goes into a fair amount of detail about only drawing the metadata of the heatmap.
Reply all
Reply to author
Forward
0 new messages