Description Usage Arguments Value Examples

Plots triplot that sum up automatic aspect/feature importance grouping

1 2 3 4 5 6 7 8 9 10 11 12 13 14 |

`x` |
triplot object |

`absolute_value` |
if TRUE, aspect importance values will be drawn as absolute values |

`add_importance_labels` |
if TRUE, first plot is annotated with values of aspects importance on the bars |

`show_model_label` |
if TRUE, adds subtitle with model label |

`abbrev_labels` |
if greater than 0, labels for axis Y in single aspect importance plot will be abbreviated according to this parameter |

`add_last_group` |
if TRUE and |

`axis_lab_size` |
size of labels on axis |

`text_size` |
size of labels annotating values of aspects importance and correlations |

`bar_width` |
bar width in the first plot |

`margin_mid` |
size of a right margin of a middle plot |

`...` |
other parameters |

plot

1 2 3 4 5 6 7 8 9 10 11 12 | ```
library(DALEX)
set.seed(123)
apartments_num <- apartments[,unlist(lapply(apartments, is.numeric))]
apartments_num_lm_model <- lm(m2.price ~ ., data = apartments_num)
apartments_num_new_observation <- apartments_num[30, ]
explainer_apartments <- explain(model = apartments_num_lm_model,
data = apartments_num[,-1],
y = apartments_num[, 1],
verbose = FALSE)
apartments_tri <- calculate_triplot(x = explainer_apartments,
new_observation = apartments_num_new_observation[-1])
plot(apartments_tri)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.