Skip to contents

Instructions for facet vizualisations

Usage

facet_specification(
  labels = NULL,
  ncol = NULL,
  sort = "alphabetical",
  top_k = NULL,
  subset = NULL,
  scales = "free_x"
)

Arguments

labels

(NULL) or named character vector with variable labels.

ncol

(NULL) or number of columns in the facet.

sort

One of "alphabetical", "importance", or "range" - sorting of the facets.

top_k

(NULL) or number of most important features to show.

subset

(NULL) or a vector of variables to show.

scales

One of "free", "free_x", or "free_y" - axis scales of the graphs.

Value

List of class facet_specification.

Examples

if (FALSE) {
g_ice(
  sculpture,
  facet_spec = facet_specification(
    ncol = 3, # display 3 columns
    sort = "importance" # sort by importance
  )
)
}