Customize the color, order and label of the legend in ggplot2
Use scale_colour_manual()

scale_colour_manual(values = c("red", "blue"), breaks = c("S2", "S1"), labels = c("sample1", "sample2"))

http://had.co.nz/ggplot2/scale_manual.html

Customize the color order and label of the…
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *