I would like to create kind of a heatmap to visualize if variables contain the value zero or one (0/1), f.e. zero = white, one = black (or any other color).
Data structure: I want to heatmap 10 different antibiotics (columns, ab1 to ab10) and 100 different bacteria (rows, bac1 to bac100). F.e. if bacterium 51 is sensitive to ab 4, this value contains "1", otherwise "0".
With the following code I get a heatmap with at least 5 or 6 different colors (white to dark red), although the values in the variables are only 0 or 1.
heatmap(data, scale = "row")
Has anyone an idea, what I do wrong? According to the idea of a heatmap (higher values return colors more towords the upper end of a scale) a plot with only white or dark red squares should be returned and nothing in between... Or am I wrong?
Thank you!
scale = "row") - jared_mamrot