Skip to content

Commit

Permalink
- vignette 그래프 레이블 영문화
Browse files Browse the repository at this point in the history
  • Loading branch information
heewon jeon committed Nov 7, 2016
1 parent f4ceec6 commit e7e817c
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion NIAdic/R/get_dic.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#' @import RSQLite
get_dic <- function(dic_name){

dic_path <- get("hangul_db_path", envir=.NIADicEnv)
dic_path <- file.path(system.file(package='NIAdic'), "hangul.db")
conn <- dbConnect(SQLite(), dic_path)
on.exit({dbDisconnect(conn)})
if(!(dic_name %in% dbListTables(conn))){
Expand Down
4 changes: 2 additions & 2 deletions NIAdic/vignettes/insighter-dic.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ total_dt <- data.table(get_dic("insighter"))

```{r,echo=FALSE}
ggplot(total_dt[,.N,.(tag)], aes(x=reorder(tag, N), N)) +geom_bar(stat='identity') + xlab("KAIST 품사(tag)") + coord_flip() + ggtitle("NIA 사전 품사별 빈도수") + scale_y_continuous(labels = comma)
ggplot(total_dt[,.N,.(tag)], aes(x=reorder(tag, N), N)) +geom_bar(stat='identity') + xlab("KAIST tag") + coord_flip() + ggtitle("Tag frequency") + scale_y_continuous(labels = comma)
ggplot(total_dt[,.N,in_category], aes(x=reorder(in_category, N), N)) +geom_bar(stat='identity') + xlab("카테고리") + coord_flip() + ggtitle("NIA 사전 카테고리별 빈도수") + scale_y_continuous(labels = comma)
ggplot(total_dt[,.N,in_category], aes(x=reorder(in_category, N), N)) +geom_bar(stat='identity') + xlab("category") + coord_flip() + ggtitle("NIA dictionary category frequency") + scale_y_continuous(labels = comma)
```

Expand Down
Loading

0 comments on commit e7e817c

Please sign in to comment.