Build a heatmap legend plot

heatmap_legend_plot(
  min_val = 0,
  max_val = 4,
  scale_name = "FPKM",
  colorset = c("darkblue", "dodgerblue", "gray80", "orange", "orangered")
)

Arguments

min_val

numeric, the minimum value in the plot scale (default = 0)

max_val

numeric, the maximum value in the plot scale (default = 4)

colorset

character vector, the colors to interpolate between using colorRampPalette.

ggplot2::scale_name

character, the name for the values displayed (default = "FPKM")

Value

a ggplot2 heatmap legend plot