如何在plotmath表达式中使用百分号作为下标?
我使用以下脚本:
text(4.2,0.45, expression(paste(P[Con_30%Fat], "=0.611")), cex = 1.3)
我收到以下错误:
Error: unexpected input in "text(4.2,0.45, expression(paste(P[Con_30%Fat], "=0.611")), cex = 1.3)"
答案 0 :(得分:1)
plot.new()
text(0.5, 0.5, expression(paste(P[Con_30*"%"*Fat], "=0.611")), cex = 1.3)