开发者

showing utf-8 character in chart generated by ggplot2

开发者 https://www.devze.com 2023-04-06 09:12 出处:网络
I want to use the symbol (u+2265): in the y-axis label of my chart. 开发者_运维技巧How can I do that? Thanks.

I want to use the symbol (u+2265):

showing utf-8 character in chart generated by ggplot2

in the y-axis label of my chart. 开发者_运维技巧How can I do that? Thanks.

UPDATE 01

I need to use add a >=95 in the y-axis label, showing the group of people aged more than 95, I tried expression(>=95) but fail as it seems to expect something before >=. What can I do?


qplot(1, 1, ylab=expression(phantom(.) >= 95))

By using phantom in the expression, you don't get anything printed. I put a period in there because phantom still leaves space, so I wanted something small.


In the y-axis or label?

plot(1,1, ylab = expression(X >= 5))

Try ?expression and ?plotmath.

0

精彩评论

暂无评论...
验证码 换一张
取 消