facet_wrap_layout: Layout as a wrap

View source: R/facet_layout.R

facet_wrap_layoutR Documentation

Layout as a wrap

Description

Layout as a wrap

Usage

facet_wrap_layout(
  plots,
  subtitles,
  prop = 10,
  parent = NULL,
  title = "",
  xlabel = "",
  ylabel = "",
  nrow = NULL,
  ncol = NULL,
  labelLocation = "top",
  byrow = TRUE,
  swapAxes = FALSE,
  labelBackground = l_getOption("facetLabelBackground"),
  labelForeground = l_getOption("foreground"),
  labelBorderwidth = 2,
  labelRelief = "ridge",
  plotWidth = 200,
  plotHeight = 200,
  sep = "*",
  maxCharInOneRow = 10,
  new.toplevel = TRUE,
  ...
)

Arguments

plots

A list of loon plots

subtitles

The subtitles of the layout. It is a list and the length is equal to the number of by variables. Each element in a list is the unique values of such by variable.

prop

The proportion of the label height and widget height

parent

a valid Tk parent widget path. When the parent widget is specified (i.e. not NULL) then the plot widget needs to be placed using some geometry manager like tkpack or tkplace in order to be displayed. See the examples below.

title

The title of the widget

xlabel

The xlabel of the widget

ylabel

The ylabel of the widget

nrow

The number of layout rows

ncol

The number of layout columns

labelLocation

Labels location.

  • Length two vector for layout grid. The first one is used to determine the position of column labels ('top' or 'bottom'). The second one is used to determine the position of row labels ('right' or 'left').

  • Length one vector for layout wrap, 'top' or 'bottom'.

byrow

Place widget by row or by column

swapAxes

swap axes, TRUE or FALSE

labelBackground

Label background color

labelForeground

Label foreground color

labelBorderwidth

Label border width

labelRelief

Label relief

plotWidth

default plot width (in pixel)

plotHeight

default plot height (in pixel)

sep

The character string to separate or combine a vector

maxCharInOneRow

deprecated

new.toplevel

determine whether the parent is a new top level. If it is not a new window, the widgets will not be packed

...

named arguments to modify plot states. See l_info_states of any instantiated l_plot for examples of names and values.


loon documentation built on July 9, 2023, 5:48 p.m.