set_x_fill_facet: Graph a dataframe of model predictions.

set_x_fill_facetR Documentation

Graph a dataframe of model predictions.

Description

This function determines the proper x, fill, facet, and facet2, given a set of preferences. It is used by other graphing functions.

Usage

set_x_fill_facet(predictions, x_pref, fill_pref, facet_pref)

Arguments

predictions

A dataframe of model predictions. The y variable must be in the first column.

x_pref

An optional vector of preferences for the x axis.

fill_pref

An optional vector of preferences for the fill of the graph.

facet_pref

An optional vector of preferences for the facets of the graph.

Value

A list with x, fill, and facet decisions.


michaelasher/asherR documentation built on July 5, 2023, 8:55 p.m.