mat_plot_coefs_tidy: Plot coefficients from tidy output

View source: R/plot_coefs_tidy.R

mat_plot_coefs_tidyR Documentation

Plot coefficients from tidy output

Description

Plot coefficients from tidy output

Usage

mat_plot_coefs_tidy(
  df,
  fill_var = "term",
  fac1_var = NULL,
  fac2_var = NULL,
  angle = 0,
  x_var = "term",
  scales = "fixed",
  fac_space = "fixed",
  geom = c("bar", "point")
)

Arguments

df

Data-frame

fill_var

variable for fill

fac1_var, fac2_var

facet variable

angle

angle in element_text()

x_var

x variable, default term

scales, fac_space

argument to facet_grid

geom

Use bar or points?

Examples

data(coefs_out_iris)
mat_plot_coefs_tidy(coefs_out_iris, fac1_var = Species)
mat_plot_coefs_tidy(coefs_out_iris, fac2_var = Species)
mat_plot_coefs_tidy(coefs_out_iris, fac1_var = Species, fac2_var = term, scales = "free")

## handle duplicates
mat_plot_coefs_tidy(coefs_out_iris)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.