Skip to content

Commit f82964f

Browse files
authored
Merge pull request #20 from Yue-Jiang/master
bug fix inline code doesn't print, fixes #19
2 parents 66fa7fa + 4aa307a commit f82964f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

inst/templates/Explain_forest_template.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ if(inherits(forest, "randomForest")){
8181
plot_multi_way_importance(importance_frame, size_measure = "no_of_nodes")
8282
```
8383

84-
The second multi-way importance plot shows importance measures that derive from the role a variable plays in prediction: `r print(noquote(measures_print))` with the additional information on the $p$-value based on a binomial distribution of the number of nodes split on the variable assuming that variables are randomly drawn to form splits (i.e. if a variable is significant it means that the variable is used for splitting more often than would be the case if the selection was random).
84+
The second multi-way importance plot shows importance measures that derive from the role a variable plays in prediction: `r measures_print` with the additional information on the $p$-value based on a binomial distribution of the number of nodes split on the variable assuming that variables are randomly drawn to form splits (i.e. if a variable is significant it means that the variable is used for splitting more often than would be the case if the selection was random).
8585

8686
```{r}
8787
plot_multi_way_importance(importance_frame, x_measure = measure1, y_measure = measure2, size_measure = "p_value")
8888
```
8989

9090
## Compare importance measures
9191

92-
The plot below shows bilateral relations between the following importance measures: `r print(noquote(paste(measures, collapse = ", ")))`, if some variables are strongly related to each other it may be worth to consider focusing only on one of them.
92+
The plot below shows bilateral relations between the following importance measures: `r paste(measures, collapse = ", ")`, if some variables are strongly related to each other it may be worth to consider focusing only on one of them.
9393

9494
```{r, fig.width = 10, fig.height = 9}
9595
plot_importance_ggpairs(importance_frame, measures) + theme_set(theme_bw(13))

inst/templates/Explain_forest_template_interactions.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Note that:
1212

1313
- the horizontal line shows the minimal value of the depicted statistic among interactions for which it was calculated,
1414

15-
- the interactions considered are ones with the following variables as first (root variables): `r print(noquote(paste(vars, collapse = ", ")))` and all possible values of the second variable.
15+
- the interactions considered are ones with the following variables as first (root variables): `r paste(vars, collapse = ", ")` and all possible values of the second variable.
1616

1717
```{r}
1818
plot_min_depth_interactions(interactions_frame)

0 commit comments

Comments
 (0)