mat_plot_coefs_tidy: Plot coefficients from tidy output

Description Usage Arguments Examples

View source: R/plot_coefs_tidy.R

Description

Plot coefficients from tidy output

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

1
2
3
4
5
6
7
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 Aug. 10, 2021, 11:01 a.m.