Quick Apex Chart

apex(data, mapping, type = "column", ..., auto_update = TRUE,
  width = NULL, height = NULL, elementId = NULL)

Arguments

data

Default dataset to use for chart. If not already a data.frame, it will be coerced to with as.data.frame.

mapping

Default list of aesthetic mappings to use for chart

type

Specify the chart type. Available Options: "column", "bar", "line", "area", "spline", "pie", "donut", "radialBar", "radar", "scatter", "heatmap".

...

Other arguments passed on to methods. Not currently used.

auto_update

In Shiny application, update existing chart rather than generating new one.

width

A numeric input in pixels.

height

A numeric input in pixels.

elementId

Use an explicit element ID for the widget.

Examples

library(dplyr)
#> #> Attachement du package : 'dplyr'
#> The following object is masked from 'package:testthat': #> #> matches
#> The following objects are masked from 'package:stats': #> #> filter, lag
#> The following objects are masked from 'package:base': #> #> intersect, setdiff, setequal, union
# make a barchart with a frequency table data("mpg", package = "ggplot2") apex( data = count(mpg, manufacturer), mapping = aes(x = manufacturer, y = n), type = "bar" ) # timeseries data("economics", package = "ggplot2") apex( data = economics, mapping = aes(x = date, y = uempmed), type = "line" ) # you can add option to apex result : apex( data = economics, mapping = aes(x = date, y = uempmed), type = "line" ) %>% ax_stroke(width = 1) # with group variable data("economics_long", package = "ggplot2") apex( data = economics_long, mapping = aes(x = date, y = value01, group = variable), type = "line" )