Put variables into "buckets" to create a set of plots instead one large plot
Source:R/tools.R
get_var_buckets.Rd
Put variables into "buckets" to create a set of plots instead one large plot
Examples
get_var_buckets(iris)
#> [[1]]
#> [1] "Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width" "Species"
#>
get_var_buckets(iris, bucket_size = 2)
#> [[1]]
#> [1] "Sepal.Length" "Sepal.Width"
#>
#> [[2]]
#> [1] "Petal.Length" "Petal.Width"
#>
#> [[3]]
#> [1] "Species"
#>
get_var_buckets(iris, bucket_size = 2, var_name_target = "Species")
#> [[1]]
#> [1] "Sepal.Length" "Sepal.Width" "Species"
#>
#> [[2]]
#> [1] "Petal.Length" "Petal.Width" "Species"
#>