I've been trying to insert a mathematical symbol as a legend label. Specifically, I want to have groups such as "Age <60" and "Age ≥60". These print OK when I plot the graph on the screen but the symbol doesn't come out when I write the graph to a pdf. I can use expression(Age >= 60) for the labels on the axes, but get an error when I try to use it for the legend labels.Warning message:
In is.na(labels) :
is.na() applied to non-(list or vector) of type 'expression'
Any ideas?Thanks very much,Brian--
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