Forum Discussion
BLPYPL
8 years agoNew Member
R text sizing Bug
Hi, The text sizing in R seems to incorrect recently. Can anyone help? I'm using custom R visuals. I simply use "plot" and "text" to plot some text. I use parameter "cex" in "text". It works in...
v-juanli-msft
8 years agoCommunity Support
Hi BLPYPL
Thank you for such detailed information, I can reproduce the issue and I am checking with engineer whether it is a bug and when and how to fix it.
I will come back to tell you if there is any update.
Best Reagrds
Maggie
Anonymous
8 years agoNot applicable
Hi,
Same issue here.
We have first noticed the problem on 26 june.
I attach a sample code to reproduce the issue; a curious fact is that the problem does not affect the text colour!
library(grid)
library(gridExtra)
d <- head(iris, 3)
g <- tableGrob(d)
find_cell <- function(table, row, col, name="core-fg"){
l <- table$layout
which(l$t==row & l$l==col & l$name==name)
}
for(i in 2:4){
for(j in 2:6){
index_fg <- find_cell(g, i, j, "core-fg")
g$grobs[index_fg][[1]][["gp"]] <- gpar(cex = i*j, col = "green")
}
}
grid.newpage()
grid.draw(g)