lineChartData {Rnvd3}R Documentation

Line chart data

Description

Make line chart data.

Usage

lineChartData(x, y, data = NULL, key, color, area = FALSE)

Arguments

x

a right-sided formula giving the variable on the x-axis, numeric or date type

y

a right-sided formula giving the variable on the x-axis, numeric type

data

dataframe containing the data for the chart; if not NULL, the variables passed to x and y are searched among the columns of data

key

string, the title of the line chart

color

string, the color of the line chart

area

Boolean, whether to turn the line chart into a filled area chart

Value

A list, for usage in lineChart.

Note

The color can be given by the name of a R color, the name of a CSS color, e.g. "lime" or "fuchsia", an HEX code like "#ff009a", a RGB code like "rgb(255,100,39)", or a HSL code like "hsl(360,11,255)".


[Package Rnvd3 version 1.0.0 Index]