This function generate htmlwidget object that using facets from Google Pair
facets( data = list(), type = c("facets-dive", "facets-overview"), width = NULL, height = 600, elementId = NULL ) facets_dive(...) facets_overview(...)
data | put data depends from facets type - facets-dive - data frame (multi table is not supported yet) - facets-overview - data frame or list of data frame as list of list |
---|---|
type | one of the type of facets c("facets-dive", "facets-overview") |
width | width for html widget |
height | height for html widget by default 600 |
elementId | id of the element |
... | arguments to facets wihout type |
the htmlwidget
# \donttest{ # Use predefined function or standard facets # facets dive facets_dive(iris) # facets overview facets_overview(iris) facets_overview(list(list(data = iris, name = "iris"), list(data = cars, name = "cars"))) # } inst/examples/app.R#> Error in eval(expr, envir, enclos): object 'inst' not found