Important for creating annotation.
ggplot_side_color_plot(
df,
palette = NULL,
scale_title = paste(type, "side colors"),
type = c("column", "row"),
text_angle = if (type == "column") 0 else 90,
is_colors = FALSE,
fontsize = 10,
label_name = NULL
)
A "molten" data.frame as produced by (eg) reshape2::melt
A function which can return colors to be used in the sidebar plot
Title of the color scale. Not currently used.
Horizontal or vertical plot? Valid values are "column" and "row"
the angle of the text of the rows/columns.
Use if the values in df are valid colours and should not be mapped to a color scheme, and instead should be plotted directly.
Font size (currently unused)
Name for the mouseover label, usually "row" or "column"
A ggplot geom_tile object