I am trying to include mathematical signs into ggplot
axis labels. Consider the following code.
library(ggplot2)
df <- data.frame(dose=c("D0.5", "D1", "D2"), len=c(4.2, 10, 29.5))
ggplot(data=df, aes(x=dose, y=len, group=1)) +
ylab("length")+
geom_line()+
geom_point()
I would now like to include the range of len ("Length")
in the y axis description with the notation Length ∈ [0, 10]
but can't find a way to get the "element of" sign into the label.