rsummarytools

R, generate pretty plot by dfSummary


I have a problem using summarytools packet. There is tutorial:https://cran.r-project.org/web/packages/summarytools/vignettes/Introduction.html with pretty plots of data: enter image description here My problem is that my code generate only TEXT GRAPH. This is chunk of code in my markdown to generate plot:

```{r summary, results='markup'}
library(summarytools)
my_data <- ...
dfSummary(my_data)
```

Unfortunately it generates something like this: enter image description here How can I generate this pretty report using summarytools? Or have you better tools for this? (generate graph, mean, std, etc.)


I found the correct syntax to generate plot:

print(dfSummary(baseline_train), method = 'render')

And the results look like this: enter image description here


Solution

  • A little update on this:

    Additionnal tips