order_data: Order Data

Description Usage Arguments Details

View source: R/utils.R

Description

Fortunately or unfortunately G2.js does not reorder the data and uses it as-is.

Usage

1
order_data(data = NULL, x = NULL, color = NULL)

Arguments

data

Data to reorder.

x

Column on x axis.

color

Color variable name.

Details

This function reorders along the x axis to make sure most plots look correct, see the NO_REORDER_TYPES for figures types that are excluded from reordering.


devOpifex/g2r documentation built on Jan. 16, 2022, 12:36 a.m.