Mathematical expression in axis label

后端 未结 4 1523
梦如初夏
梦如初夏 2020-12-16 12:59

In R, I use expression(theta[l]) so that the label of my plot axis is that same as $\\theta_l$ from LaTeX. For esthetic reasons, I\'d rather like t

4条回答
  •  臣服心动
    2020-12-16 13:30

    This is a somewhat dirty solution, but it makes it:

    plot(1,1, xlab=expression(theta))
    title(xlab="    \u2113",line=3.2,cex.lab=.7)
    

    First plot with the theta symbol. Then add the \ell symbol with smaller font size and manually setting the position.

    enter image description here

提交回复
热议问题