【发布时间】:2019-11-23 05:58:17
【问题描述】:
我正在尝试翻转轴,使 Features 位于 X 轴上。下面的代码给了我一个错误,系统覆盖了轴'。
>gplt = xgb.ggplot.importance (importance_matrix = xgb.importance(model =model_xgb) , top_n = 10 , n_clusters = 1 )
+theme(legend.position = "none" , text = element_text(size = 20))
>gplt +coord_flip()
#[OUTPUT]:
Coordinate system already present. Adding new coordinate system, which will replace the existing one.
【问题讨论】: