r - 是否可以在 R 中绘制镜像翻转的文本?

标签 r

我知道text函数中有str参数;如果我也能够绘制镜像字母/字符串,那就太好了......有什么想法吗?

最佳答案

你可以使用 grImport,但它相当复杂

enter image description here

library(grImport)

cat("%!PS 
 /Times-Roman findfont 
 100 scalefont 
 setfont 
 newpath 
 0 0 moveto 
 -1 1 scale
 (hello) show", file="hello.ps")

PostScriptTrace("hello.ps", "hello.xml")
hello <- readPicture("hello.xml")
grid.newpage()
grid.picture(hello)

关于r - 是否可以在 R 中绘制镜像翻转的文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26086985/

相关文章:

r - 缺少参数 "by",没有默认值

r - data.table merge on duplicate column name/如何写J对应于Y中的名称?

c++ - 使用 RInside 阅读 R 控制台

r - 在 R 中使用 causalweight 包

jquery - R Shiny : table conditional formatting within renderUI

R -- 不是由 Sweave 制作的小插图可能吗?

r - 将 ggplotly 和 ggplot 与拼凑而成?

删除 data.table 的分组变量

R:使用 MaxLik() 包估计 mle 时出错

r - R data.table 单元格的矢量化分配,列按行不同