View source: R/e_plot_clean_numeric_nonnum_minmax.R
e_plot_clean_numeric_nonnum_minmax | R Documentation |
The variables included together are plotted on the same x-axis scale.
e_plot_clean_numeric_nonnum_minmax(
dat_this,
binwidth = 7,
n_table = 5,
sw_date = FALSE,
sw_plot = TRUE,
lab_title = NULL
)
dat_this |
data gathered with selected variables |
binwidth |
for histogram |
n_table |
is the number of table values to print |
sw_date |
is the value a date? |
sw_plot |
TRUE/FALSE switch to plot |
lab_title |
title before output and for plot |
invisible(NULL)
## requires formatting into two columns: "variables" and "values"
dat_this <-
dat_mtcars_e |>
dplyr::select(
model
, tidyselect::starts_with("hp")
, where(is.numeric)
) |>
tidyr::pivot_longer(
cols = -model
, names_to = "variable"
, values_to = "value"
) |>
dplyr::select(
-model
)
dat_this |> e_plot_clean_numeric_nonnum_minmax()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.