【问题标题】:R expression can't be shown Mac bookR 表达式无法显示 Mac book
【发布时间】:2017-11-21 12:35:56
【问题描述】:

我正在尝试在 x 或 y 标签中使用以下表达式绘制图形: 例如

qplot(x=rnorm(20), y=rnorm(20))+ 
  ylab("Per mil--> [\u2030]")+ #this works for me
  xlab(expression(paste(delta,""^"13","C [\u2030]"))) #this doesn't work on my Mac and shows: d13C [ U+2030>], where d13C is correctly shown, but the sign for per mil not; on Windows this expression was working

我希望你能帮助我。谢谢!

【问题讨论】:

    标签: r ggplot2 expression axis-labels


    【解决方案1】:

    这行得通吗?

    qplot(x=rnorm(20), y=rnorm(20)) + 
      ylab("Per mil--> [\u2030]") + 
      xlab("\u03B4\u00B9\u00B3C [\u2030]")
    

    【讨论】:

    • ...但是对于 delta^18 O iit 不适用于上标 8:xlab("\u03B4\u00B9\u2078O [\u2030]") --> 只描绘了一个正方形对于这个角色
    • @SaRa 而且大概xlab(expression(delta^{18}*"O [\u2030]")) 在 Mac 上不起作用?
    • @SaRa 什么显示不正确?千分之一符号?如果是这样,这是否有效xlab(expression(delta^{18}*"O [‰]"))
    • With: xlab(expression(delta^{18}*"O [\u2030]")) 只有每密尔符号不能描绘,d18O 很好用:xlab(expression(delta^ {18}*"O [‰]")) d18O 也很好,但它显示 [...] 使用 Windows 系统,我可以描述上述所有选项,但我必须使用 Mac(我是一个关于 Mac 的新手)现在......是否有某种额外的包用于 Mac 或 Mac 中的字符等?感谢您的所有帮助!
    • 这是一个不错的选择!仅供参考:我用小写字母 o 代替了 0 来表示每英里符号,这样看起来更好一些。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-06-28
    • 1970-01-01
    • 1970-01-01
    • 2015-08-19
    • 1970-01-01
    • 1970-01-01
    • 2021-05-06
    相关资源
    最近更新 更多