I would like to scale a particular part of the y axis of a ggplot graph. The basic code is:
set.seed(1)
df <- data.frame(val = rnorm(100),
gene = rep(letters[1:20], 5),
cell = c(sapply(LETTERS[1:5],
function(l) rep(l, 20))))
library(ggplot2)
ggplot(df, aes(y = gene, x = cell, fill = val)) +
geom_tile(color = "white")
which gives the following output:
And I need an output like:
Maybe you have an idea? Thanks