Usage
side_color_plot(df, palette, scale_title = paste(type, "side colors"), type = c("column", "row"), row_text_angle, column_text_angle, is_colors)
Arguments
df
A "molten" data.frame as produced by (eg) reshape2::melt
palette
A function which can return colors to be used in the sidebar
plot
scale_title
Title of the color scale. Not currently used.
type
Horizontal or vertical plot? Valid values are "column" and "row"
row_text_angle, column_text_angle
the angle of the text of the rows/columns.
is_colors
Use if the values in df are valid colours and should not be mapped
to a color scheme, and instead should be plotted directly.