Dear all,
may I ask for a simple advice on how to make a scatter plot in ggplot2 that colours differently UP, DOWN and NON-regulated genes (in total, 5000 genes). BUT would like to show the NON-reg genes in the background (perhaps in a GREY transparent color), and bring in the foreground only UP-- and DOWN- genes.
a piece of example at a smaller scale is below, although we work with > 5000 genes. thanks a lot !
mycolours <- c("U" = "green", "D" = "red", "U"="grey")
x <- c(1,2,3,4,5,6)
y <- c(1,2,3,4,5,6)
z <- c("U","U","D","D","N", "N")
t <- data.frame(x,y,z)
ggplot(data = t, aes(y = y, x = x)) +
geom_point(size=2, aes(colour=z)) +
scale_color_manual("Status", values = mycolours)