Package 'facetsr'

Title: facets R wrapper
Description: The goal of facetsr is to create an R wrapper for facets. So use facets to explore your dataset.
Authors: c(person('Adam', 'Forys', email = '[email protected]', role = c('cre', 'aut')))
Maintainer: The package maintainer <[email protected]>
License: MIT + file LICENSE
Version: 0.1.1
Built: 2024-11-07 02:56:26 UTC
Source: https://github.com/openpharma/facetsr

Help Index


Explorer data using facets

Description

This function generate htmlwidget object that using facets from Google Pair

Usage

facets(
  data = list(),
  type = c("facets-dive", "facets-overview"),
  width = NULL,
  height = 600,
  elementId = NULL
)

facets_dive(...)

facets_overview(...)

Arguments

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

Value

the htmlwidget

See Also

Facets Google pair website

Examples

# 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

Shiny bindings for facets

Description

Output and render functions for using facets within Shiny applications and interactive Rmd documents.

Usage

facets_output(outputId, width = "100%", height = "auto")

render_facets(expr, env = parent.frame(), quoted = FALSE)

Arguments

outputId

output variable to read from

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended. height will probably not have an effect; instead, use the height parameter in facets.

expr

An expression that generates a facets canvas

env

The environment in which to evaluate expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.


facetsr

Description

This is facets R wrapper

Details

This is htmlwidget librray.


Access files in the current app

Description

Access files in the current app

Usage

inst_path(...)

Arguments

...

Character vector specifying directory and or file to point to inside the current package.

Examples

## Not run: 
inst_path("")

## End(Not run)