r-lib / gtable

The layout packages that powers ggplot2
https://gtable.r-lib.org
Other
87 stars 18 forks source link

creation of gtable via nrow/ncol and default.units. #36

Closed kohske closed 5 years ago

kohske commented 12 years ago
gt <- gtable(1:3, 1:2)
gtable_show_layout(gt)

gt <- gtable(c(1, 2, 1), c(1, 1), default.units = "cm")
gtable_show_layout(gt)

gt <- gtable(nrow = 3, ncol = 2)
gtable_show_layout(gt)

gt <- gtable(nrow = 3, ncol = 2, default.units = "cm")
gtable_show_layout(gt)
hadley commented 8 years ago

Could you please add a bullet point to NEWS?

thomasp85 commented 5 years ago

@Hadley do you still want this? if so I'll go through all constructors and add a default.unit argument

hadley commented 5 years ago

I don't have any strong feelings either way.