pdf_varimp | R Documentation |
This function takes a caret package training output and visualizes the variable importance.
pdf_varimp( x, filename, labels = NULL, font = NULL, n_max = 10, size = 12, width = 8, height = 4, seed = 100 )
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.