ggplot(x, aes(x, y)) + geom_tile(aes(fill = z), colour = "white") + scale_fill_gradient(low
= "white", high = "black", name = "Absolute
\nHäufigkeit")
Hello,
I am quiet new to ggplot2 and I have some small problems which google could not solve ;-)
This is the basic code I use:
ggplot(x, aes(x, y)) + geom_tile(aes(fill = z), colour = "white") + scale_fill_gradient(low
= "white", high = "black", name = "Absolute
\nHäufigkeit")
Frist I have the problem that I need to do several of this graphs and they should all have the same maxima at the legend.
At the moment somtimes the top value of the legend is maybe 8 or 15 depending on the data.
Therefore I would like so set the scale manually to for example 15 that one can compare the graphs more easily having the same legend.
Second I would like to increase the size of the legend. I just found out that I could use " + guides(fill = guide_legend(keyheight = 3))" for that.
But if I do so the type of the legend is also changing and I would like to remain the continious gradient scale.
Thank you very much for your help :-)
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.