Displaying 3 results from an estimated 3 matches for "expressionpaste".
2017 Jun 29
0
Changing ggplot2 legend key/title to custom text
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"
how can we know what does it mean?
Plotmath expressions are rather tricky, especially if you do not use them often. You need some experimenting.
Cheers
Petr
> -----Origi...
2017 Jun 29
2
Changing ggplot2 legend key/title to custom text
Hi all,
ok I have this issue:
I want to change my graphs legends to custom text, often requiring the use of superscripts/subscripts
I tried to use this instruction I found on stack overflow:
labs(x = "R(Ohm)", y= "CDF", aesthetic= " Content (%)" )
but it wont' seem to work.
Also tried bquote for super/ subscripts
xlab(bquote(~x~/(~x~ + ~MO[2]~)*
2017 Jun 29
1
Changing ggplot2 legend key/title to custom text
...os 247554 <Marios.BARLAS at cea.fr>; r-help at r-project.org
Objet?: RE: Changing ggplot2 legend key/title to custom text
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"
how can we know what does it mean?
Plotmath expressions are rather tricky, especially if you do not use them often. You need some experimenting.
Cheers
Petr
> -----Origi...