prep_data: Prepare data for scatter plot

View source: R/plot_helpers.R

prep_dataR Documentation

Prepare data for scatter plot

Description

Pad out data if group and/or text are missing

Usage

prep_data(data, x, y, group, text, na.rm = TRUE)

Arguments

data

data frame.

x

x variable

y

y variable

group

Optional grouping vairiable

text

Optional text variable to show in hover info

na.rm

remove missing x/y observations.


MohoWu/ricardor documentation built on March 24, 2022, 4:39 p.m.