Hi
I usually use google. It is quite powerful.
Search
ggplot legend title
results in
http://www.cookbook-r.com/Graphs/Legends_(ggplot2)/
from which you could find a way how to modify legend.
library(ggplot2)
bp <- ggplot(data=PlantGrowth, aes(x=group, y=weight, fill=group)) +
geom_boxplot()
b
Hi Petr and thanks for your reply,
That's the problem I don't want to modify the labels of my legends but the
title of the legend in itself inserting my custom text :)
Take for example the 1st graph in this tutorial
http://www.sthda.com/english/wiki/ggpubr-r-package-ggplot2-based-publication-re
Hi
There are plenty of examples
https://stackoverflow.com/questions/6202667/how-to-use-subscripts-in-ggplot2-legends-r
https://stackoverflow.com/questions/19507742/using-expressionpaste-to-insert-math-notation-into-a-ggplot-legend
which you can modify.
If you say
"but it wont' seem to work"
ho
3 matches
Mail list logo