I'm probably asking too much, anyway I would like to create a legend title on two lines, where the first line contains an expression (the greek symbol \\Phi, with subscript 10
), and the second line is [.]
. It should look like this:
I tried
p <- ggplot(mtcars,aes(x=wt,y=mpg,color=qsec))+
geom_point()+
labs(color=expression(atop(Phi["10"]),group("[",.,"]")))
But this doesn't print the lower line:
Can you help?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.