list_plot: Apply a plotting function to a vector of x or y values

list_plot_xR Documentation

Apply a plotting function to a vector of x or y values

Description

list_plot_x vectorizes over the x value, list_plot_y vectorizes over the y value, list_plot_xy vectorizes first over x then over y, and list_plot_yx vectorizes over y before x.

Usage

list_plot_x(df, x, y, .fun = cont_cont, ...)

list_plot_y(df, x, y, .fun = cont_cont, ...)

list_plot_xy(df, x, y, .fun = cont_cont, ...)

list_plot_yx(df, x, y, .fun = cont_cont, ...)

Arguments

df

the plotting data set.

x

the x-column, as a col_label.

y

the y-column, as a col_label.

.fun

the function to call.

...

arguments passed to fun.

Details

This function was intended for use with functions that ultimately call cont_cont() and have continuous data on the x and y axes.

Value

A named list of plots generated from .fun.


metrumresearchgroup/pmplots documentation built on Oct. 15, 2024, noon