Calcurate layout matrix for ggmultiplot

get.layout(nplots, ncol, nrow)

Arguments

nplots

Number of plots

ncol

Number of grid columns

nrow

Number of grid rows

Value

matrix

Examples

ggfortify:::get.layout(3, 2, 2)
#>      [,1] [,2]
#> [1,]    1    2
#> [2,]    3    4