tm_facets | R Documentation |
Specify facets. tm_facets()
is the core function, but recommended is to use
tm_facets_wrap()
, tm_facets_stack()
or tm_facets_grid()
.
The former two specify facets for one grouping variable (so one faceting dimension).
The difference is that wrap may place facets in multiple rows and columns whereas
tm_facets_stack()
stacks the facets either horizontally or vertically.
tm_facets_grid()
supports up to three faceting dimensions.
tm_facets(
by = NULL,
rows = NULL,
columns = NULL,
pages = NULL,
as.layers = FALSE,
nrows = NA,
ncols = NA,
byrow = TRUE,
orientation = NA,
free.coords = NA,
drop.units = TRUE,
drop.empty.facets = TRUE,
drop.NA.facets = FALSE,
sync = TRUE,
na.text = NA,
scale.factor = 2,
type = NA,
along = NULL,
free.scales = NULL,
...
)
tm_facets_grid(rows = NULL, columns = NULL, pages = NULL, ...)
tm_facets_wrap(by = "VARS__", nrows = NA, ncols = NA, byrow = TRUE, ...)
tm_facets_pagewise(by = "VARS__", nrows = 1, ncols = 1, byrow = TRUE, ...)
tm_facets_stack(by = "VARS__", orientation = NA, ...)
tm_facets_hstack(by = "VARS__", ...)
tm_facets_vstack(by = "VARS__", ...)
tm_facets_flip(...)
by |
Group by variable (only for a facet wrap or facet stack) |
rows |
Variable that specifies the rows (only for a facet grid) |
columns |
Variable that specifies the columns (only for a facet grid) |
pages |
Variable that specifies the pages (only for a facet grid) |
as.layers |
show facets as layers? |
nrows |
Number of rows |
ncols |
Number of columns |
byrow |
Should facets be wrapped by row? |
orientation |
For facet stack: horizontal or vertical? |
free.coords |
Logical. If the |
drop.units |
Logical. If the |
drop.empty.facets |
Logical. If the |
drop.NA.facets |
Logical. If the |
sync |
Logical. Should the navigation in view mode (zooming and panning)
be synchronized? By default |
na.text |
Text used for facets of missing values. In v3, it was |
scale.factor |
Number that determines how the elements (e.g. font sizes,
symbol sizes, line widths) of the small multiples are scaled in relation to
the scaling factor of the shapes. The elements are scaled to the |
type |
|
along |
deprecated Please use |
free.scales |
deprecated. Please use the |
... |
passed on to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.