Skimr - cant seem to produce the histograms

主宰稳场 提交于 2019-12-01 06:56:27

A solution that can be used to workaround the above problem is to set the locale of the R system to Chinese and to set the font of the R console to NSimSun.

temp <- tempfile()
cat("font = NSimSun\n", file = temp, append = TRUE)
loadRconsole(file = temp)
Sys.setlocale( locale='Chinese' )

library(skimr)
(a <- skim(mtcars))

View(a)

In RStudio this solution works only partially. Histograms generated by skim can be visualized only using View after setting the locale of R to Chinese

Sys.setlocale( locale='Chinese' )
library(skimr)
a <- skim(mtcars)
View(a)

Hope this can help you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!