R-图形文字功能错误,R代码执行错误

时间:2018-11-13 02:51:02

标签: r rstudio

尝试使用

时出现一个奇怪的错误
graphics::text

功能。

错误消息:

Error in substring(html, match + 6, match + attr(match, "match.length") -  : 
invalid multibyte string at '<98> <c3>・&lt;テ<85> テヲ&lt;テ<86>", side = 3)

points(c(6,2), c(2,1), pch = 3, cex = 4, col = "red")
text(6, 2, "the text is CENTERED around (x,y) = (6,2) by default", cex = .8)
text(2, 1, "or Left/Bottom - JUSTIFIED at (2,1) by 'adj = c(0,0)'", adj = c(0,0))
text(4, 9, expression(hat(beta) == (X^t * X)^{-1} * X^t * y))
text(4, 8.4, "expression(hat(beta) == (X^t * X)^{-1} * X^t * y)", cex = .75)
text(4, 7, expression(bar(x) == sum(frac(x[i], n), i==1, n)))

## Two more latin1 examples
text(5, 10.2,
  "Le franテァais, c'est faテァile: Rティgles, Libertテゥ, Egalitテゥ, Fraternitテゥ...")
text(5, 9.8,
  "Jetz no chli zテシritテシテシtsch: (noch ein biテ歡hen Zテシrcher deutsch)")

</pre>
<hr /><div style="text-align: center;">[Package <em>graphics</em> version 
3.5.0 <a href="00Index.html">Index</a>]</div>
</body></html>'

我正在使用Windows10,日语,“ R版本3.5.0”,Rstuido 1.1.463。

有人可以帮助我解决此问题吗?谢谢!

0 个答案:

没有答案