Closed gilleschapron closed 9 years ago
Gilles,
Thanks very much for bringing this to my attention, I am not sure what is causing the labels to get suppressed, but it appears the presence of 'Numbers' in the text is causing it somehow -- if you remove the numbers (2 and 20) then they print ok.
As a workaround, you can use 'expressions' in the label fields, like this:
plot <- ggtern(data = granu, aes(y = T, x = L, z = R)) +
geom_segment(data = lim.demolon,
aes(x = y, y = x, z = z,
xend = yend, yend = xend, zend = zend),
size = 0.5) +
geom_text(data = type.sol, aes(x = L, y = T, z = R, label = txt),
size = 4) +
geom_point(color = 'red') +
labs(title = "Classification de Demolon",
T = expression("Argile (< "*2*"µm)"),
L = expression("Limon ("*2*" à "*20*"µm)"),
R = expression("Sable (> "*20*"µm)")) +
theme_showarrows() +
theme_arrowlong() +
theme_hidetitles()
plot
I know it is a little more tedious, but it should get you out of the mud.
Cheers,
NH
Thanks for your quick answer, I have not thinking about using "expression" but the result is just perfect.
Hi
First, I would like to thank you for your very useful work on this package.
I have a little issue with the labels I would like to print on my plot. With this code, everything is ok:
But when I want to print:
Nothing is printed...
Do I make something wrong ?
Regards Gilles