Description Usage Arguments Value
Creates HTML widgets from sorting grids. Wraps pensieve's inanimatus.js. End users should use the convenient print method wrappers.
1 2 3 4 5 6 7 8 9 10 11 12 | inanimatus(
grid = as_psGrid(obj = c(1, 2, 3, 5, 3, 2, 1)),
sort = matrix(data = c(NA, NA, NA, "foo", NA, NA, NA, NA, NA, NA, "bar", NA, NA, NA,
NA, NA, "zap", "zop", "zong", NA, NA, NA, "wap", "gum", "pap", "wep", "pel", NA,
"rom", "com", "jul", "rob", "di", "nir", "omg"), byrow = TRUE, nrow = 5),
header = TRUE,
footer = TRUE,
aspect_ratio_cards = 16/9,
scale_2_height = NULL,
width = NULL,
height = NULL
)
|
grid |
|
sort |
|
header |
A logical flag, defaults to |
footer |
A logical flag, defaults to |
aspect_ratio_cards |
A numeric scalar, giving width divided by height of individual cards (such as 16/9 for screen dimensions). Aspect ratio of cards is required to appropriately set the resulting dimensions of the grid. Defaults to standard business cards. |
scale_2_height |
|
width |
Fixed width for widget (in css units). The default is
|
height |
Fixed height for widget (in css units). The default is
|
An htmlwidget.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.