gridExtra: functions in Grid graphics
作図関数の拡張
- CRAN: http://cran.r-project.org/web/packages/gridExtra/index.html
- GitHub: https://github.com/baptiste/gridextra
- URL: http://code.google.com/p/gridextra/
> library(gridExtra)
バージョン: 2.0.0
関数名 | 概略 |
---|---|
arrangeGrob |
Arrange multiple grobs on a page |
gridExtra-package |
Miscellaneous Functions for "Grid" Graphics |
ngonGrob |
Regular polygon grob |
tableGrob |
Graphical display of a textual table |
ngonGrob
> library(grid)
> N <- 5
> xy <- polygon_regular(N) * 2
>
> # draw multiple polygons
> g <- ngonGrob(unit(xy[,1],"cm") + unit(0.5,"npc"),
+ unit(xy[,2],"cm") + unit(0.5,"npc"),
+ n = seq_len(N) + 2, gp=gpar(fill=1:N))
>
> grid.newpage()
> grid.draw(g)
tableGrob
> library(grid)
> grid.newpage()
> iris %>% head(3) %>%
+ tableGrob() %>%
+ grid.draw()