I add the following code:
scale_fill_continuous(limits=c(0.0001, 28),trans = "log",
low = "green", high = "red",
breaks=c(0.0001,0.001,0.01,0.1,1,3,10,25))
The text on legend should be
(0.0001,0.0010,0.0100,0.1000,1.0000,3.0000,10.0000,25.0000)
How to remove the excessive zero on the text of legend?
How to make them as the following:
(0.0001,0.001,0.01,0.1,1,3,10,25)
Just use the
labelsargument to explicitly tellggplot2to use those labels, i.e.: