Package 'chartkickR'

Title: What the Package Does (One Line, Title Case)
Description: This is an implementation of the Chartkick.js library in R using the htmlwidgets framework.
Authors: Bilikisu Olatunji [aut, cre]
Maintainer: Bilikisu Olatunji <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-11-24 05:56:16 UTC
Source: https://github.com/BWOlatunji/chartkickR

Help Index


Chartkick.js chart in R powered by htmlwidgets

Description

chartkickR is an R package to draw charts based on Chartkick.js JavaScript Library

Usage

chartkickR(
  data,
  x = NULL,
  y = NULL,
  group = NULL,
  size = NULL,
  type,
  ...,
  width = NULL,
  height = NULL,
  elementId = NULL
)

Arguments

data

data.frame containing data series

x, y

List of name value pairs used to map variables on the chart.

group

string representing the column name used for grouping

size

bubble size when create bubble chart

type

string representing the chart type name i.e. "LineChart"

...

configurations arguments for the chart

width

chart's width

height

chart's height

elementId

html element id


Shiny bindings for chartkickR

Description

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

Usage

chartkickROutput(outputId, width = "100%", height = "400px")

renderChartkickR(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.

expr

An expression that generates a chartkickR

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.