MG: create a new MG plot object

Description Usage Arguments See Also

Description

Specify data options and create a MG plot object.

Usage

1
2
3
4
5
MG(data = NULL, ...)

## S3 method for class 'data.frame'
MG(data, missing_is_zero = NULL, x_accessor = NULL,
  y_accessor = NULL, width = NULL, height = NULL)

Arguments

data

data that at least has columns of x_accessor and y_accessor

missing_is_zero

if true and if the data object is a time series, missing data points will be treated as zeros.

x_accessor

the name of the element in the data that should be considered the x-accessor

y_accessor

the name of the element in the data that should be considered the y-accessor

width

the width of the output widget

height

the height of the output widget

See Also

https://github.com/mozilla/metrics-graphics/wiki/Data


yutannihilation/mxgx documentation built on May 4, 2019, 7:46 p.m.