Displaying 1 result from an estimated 1 matches for "0inches".
Did you mean:
inches
2007 Feb 12
1
Width of a plotting point (in inches) in grid package
Hello,
I'm trying to determine the width of a plotting point (in inches) in the
grid package. I naively thought I could create a pointsGrob with only one
point and get the width (as tried below), but this results in an object with
a size of 0inches (changing cex has no effect). Does anyone have a better
approach? Of course, it would be dependent upon the graphics parameters and
viewport...
Thanks,
Randy
> library(grid)
> pushViewport(viewport())
> convertX(grobWidth(pointsGrob(1, 1)), 'inches')
[1] 0inches
# I think we...