Reputation: 1
I am currently working on this tile plot (not very experienced):
ggplot(df_A, aes(x = Sample.ID, y = Species, fill = Score)) +
geom_tile() +
scale_fill_gradient(low = "#FFC0CB", high = "#800080") +
theme(axis.text.x = element_text(angle = 100, vjust = 0.5, hjust = 1),
plot.background = element_rect(fill = "#F8F8F8"))
I would like to show all possible Sample.ID's, not only the ones with at least a low Score. How can I do that?
Thank you in advance
I tried to make a pheatmap in stead and it works (with lots of changes to the data structure, setting NA to all possible Species). But I really would like to have a geom_tile Plot
Upvotes: 0
Views: 74