1

I have this data set (it's an example). With my real data set, I have 100 categorical variables:

library(DataExplorer)

df <- data.frame(Sex = c("Male","Female","Male","Female","Male"))

create_report(df)

And I am making a report through DataExport, but it generates a bar plot in this way: enter image description here

But my desired plot is:

Desired plot

How could I customize this plot?

double-beep
  • 5,031
  • 17
  • 33
  • 41
adircinho
  • 49
  • 4
  • there is a `config` option – akrun Feb 07 '20 at 21:19
  • It doesn't look like the function `plot_bar()` that makes the plot accepts arguments to add labels. – novica Feb 07 '20 at 21:29
  • 2
    @adircinho: you can modify the function and overwrite the original one https://github.com/boxuancui/DataExplorer/blob/master/R/plot_bar.r – Tung Feb 08 '20 at 00:56

0 Answers0