[R] cex multiplier not exact
Ali Tofigh
alix.tofigh at gmail.com
Sun Oct 23 22:33:32 CEST 2011
Hi,
When I plot text and use cex to change the text size, I notice that the cex
multiplier is not exact. It looks as if the real size of text can take only
certain discrete values. Is there a workaround to get text to follow the cex
value more closely, or at least to be able to figure out what the real cex value
will be?
Here is an example that illustrates the problem:
cex <- seq(0.5, 1, 0.01)
x <- 0.05
y <- (1:length(cex))/length(cex)
labels <- paste("XXXXXX", cex)
plot.new()
text(x=x, y=y, labels=labels, pos=4, cex=cex)
/Ali
More information about the R-help
mailing list