pdf_varimp: Visualization of caret::varImp

View source: R/plots.R

pdf_varimpR Documentation

Visualization of caret::varImp

Description

This function takes a caret package training output and visualizes the variable importance.

Usage

pdf_varimp(
  x,
  filename,
  labels = NULL,
  font = NULL,
  n_max = 10,
  size = 12,
  width = 8,
  height = 4,
  seed = 100
)

Arguments

x

Model output from caret.

filename

File name to export the PDF.

labels

If separate labels are provided for features. Defaults to NULL.

font

Which font to use. If not specified, defaults to Kievit Offc Pro.

n_max

Number of top variables to show. Defaults to 10.

size

Size of the strip.text.x element from 'ggplot2::theme'. Defaults to 12.

width

Width of the PDF export. Defaults to 8.

height

Height of the PDF export. Defaults to 4.

seed

Randomization seed. Defaults to 100.


sysilviakim/Kmisc documentation built on Jan. 28, 2023, 10:58 a.m.