boxuancui / DataExplorer

Automate Data Exploration and Treatment
http://boxuancui.github.io/DataExplorer/
Other
509 stars 88 forks source link

Nothing to plot #180

Closed shouyongpeng closed 7 months ago

shouyongpeng commented 7 months ago

Thanks for this great package! Somehow "Error" came out when there is not discrete feature to plot. I would be great to add a line for this condition to skip the plot_bar.

Error: ! Note: All discrete features ignored! Nothing to plot! Backtrace:

  1. base::do.call(plot_bar, c(list(data = data), bar_option))
  2. DataExplorer (local) <fn>(data = <dt[,4]>, ggtheme = theme_gray(), theme_config = <list>)
boxuancui commented 7 months ago

Hi @shouyongpeng, this error is there on purpose so that users don't end up with bugs that fail silently. If this is disrupting your workflow, please use tryCatch to bypass that. Thank you!

shouyongpeng commented 7 months ago

Hi @shouyongpeng, this error is there on purpose so that users don't end up with bugs that fail silently. If this is disrupting your workflow, please use tryCatch to bypass that. Thank you!

@boxuancui Thanks for the quick response!

boxuancui commented 7 months ago

You are welcome! Thanks for using DataExplorer!