A function that will take a data frame that has only an id column and all other columns should have a colour added for microreact

colour_dataframe(
  data,
  id_column = "id",
  present_colour = "#ff6b6b",
  absent_colour = "#efefef",
  absence_characters = "-"
)

Arguments

data

a dataframe with an id column and other columns to be coloured

id_column

name of the id column

present_colour

the html colour to use when a gene is present

absence_characters

the character to use when a gene is absent

absent_color

the html colour to use when a gene is absent

Value

coloured_data