Learn R Programming

ggincerta (version 0.1.0)

duo: Format input and assign the "map" class

Description

duo() and duo_exceed() create paired mapping objects that combine two variables, record their names, and assign the bivariate/exceed class as an attribute for use in aesthetic mappings.

Usage

duo(v1, v2)

duo_exceed(estimate, error)

Value

A list-like object containing pairs of values from the two variables, with attributes storing the variable names and the class.

Arguments

v1, v2

Input variables for duo().

estimate, error

Input variables for duo_exceed() representing the point estimate and its uncertainty.

Examples

Run this code
value <- nc$value
sd <- nc$sd
res <- duo(value, sd)
res_exceed <- duo_exceed(value, sd)
class(res); class(res_exceed)
attr(res, "vars"); attr(res_exceed, "vars")

Run the code above in your browser using DataLab