【问题标题】:How to make the square root symbol in axes labels?如何在轴标签中制作平方根符号?
【发布时间】:2012-09-29 04:58:18
【问题描述】:

如何使平方根符号出现在 R 中的轴标签上?

【问题讨论】:

    标签: r plotmath


    【解决方案1】:

    使用expression(sqrt(x)),查看help file(通过在mnel 的评论中提到的?plotmath)在R 图中进行数学注释。

    plot(1:10,
         main='Example',
         ylab=expression(sqrt(x)))
    

    产生

    【讨论】:

    • +1。无需在网上寻求帮助。 ?plotmath 将提供相同的帮助页面
    • 我投反对票(问题,而不是答案),因为@user1730122 被交叉发布到 r-help。
    猜你喜欢
    • 2017-03-12
    • 2020-05-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多