lineChartData: Line chart data

Description Usage Arguments Value Note

View source: R/lineChartData.R

Description

Make line chart data.

Usage

1
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)".


Rnvd3 documentation built on Sept. 5, 2021, 5:18 p.m.