Closed kvanhoorde closed 8 years ago
it doesn't work as expected (returns "scientific" or "value" strings instead of values), however, I fixed this. I will close this pull request, but I will add your changes right now. Thank you!
I am sorry for the mistake. It had to be "p <- p + geom_text(aes_string(fill = "value", label = label), size = sizeText)" in the code instead of "p <- p + geom_text(aes(fill = value, label = label), size = sizeText)".
Thanks for your modifications. However it seems to me that in this way the scientific notation is not used since the modification to m is done after supplying m already to ggplot. So I suppose the code that I proposed with the modification as mentioned in my comment before (using "aes_string(fill = "value", label = label)") inside geom_text should fix this issue.
Two additional parameters: