{"action":"opened","issue":{"url":"https://api.github.com/repos/TaiwanRUserGroup/DSC2015Tutorial/issues/32","labels_url":"https://api.github.com/repos/TaiwanRUserGroup/DSC2015Tutorial/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/TaiwanRUserGroup/DSC2015Tutorial/issues/32/comments","events_url":"https://api.github.com/repos/TaiwanRUserGroup/DSC2015Tutorial/issues/32/events","html_url":"https://github.com/TaiwanRUserGroup/DSC2015Tutorial/issues/32","id":102328348,"number":32,"title":"ＭAC 在產生關聯圖形出現亂碼的狀況處理方式分享","user":{"login":"rugbyball","id":12488869,"avatar_url":"https://avatars.githubusercontent.com/u/12488869?v=3","gravatar_id":"","url":"https://api.github.com/users/rugbyball","html_url":"https://github.com/rugbyball","followers_url":"https://api.github.com/users/rugbyball/followers","following_url":"https://api.github.com/users/rugbyball/following{/other_user}","gists_url":"https://api.github.com/users/rugbyball/gists{/gist_id}","starred_url":"https://api.github.com/users/rugbyball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rugbyball/subscriptions","organizations_url":"https://api.github.com/users/rugbyball/orgs","repos_url":"https://api.github.com/users/rugbyball/repos","events_url":"https://api.github.com/users/rugbyball/events{/privacy}","received_events_url":"https://api.github.com/users/rugbyball/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-21T08:43:00Z","updated_at":"2015-08-21T08:43:00Z","closed_at":null,"body":"各位好，剛剛分享了文字雲在 Mac 上亂碼的問題處理方式\r\n\r\nhttps://github.com/TaiwanRUserGroup/DSC2015Tutorial/issues/28\r\n\r\n可是我用同樣的方式執行到後面產生關聯圖形時還是產生亂碼\r\n\r\nhttp://nbviewer.ipython.org/format/slides/github/whizzalan/RTextMining/blob/gh-pages/lightingTalk/lightingTalk.ipynb#/10\r\n\r\n後來花了不少時間才找到解決方法\r\n\r\n原始網頁：https://lists.nongnu.org/archive/html/igraph-help/2007-07/msg00011.html\r\n\r\n解決方式是在原來的語法中加入參數 vertex.label.family=\"Heiti TC Light\"\r\n\r\nplot(g, vertex.label= nodeLabel,  edge.curved=TRUE, vertex.label.cex =1.25,  edge.arrow.size=0.2, layout=l)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/12488869/9404615/a3b62b5a-4823-11e5-9f44-68b62b93267b.png)\r\n\r\n-->\r\nplot(g, vertex.label= nodeLabel,  edge.curved=TRUE, vertex.label.cex =1.25,  edge.arrow.size=0.2, layout=l,vertex.label.family=\"Heiti TC Light\")\r\n\r\n終於可以顯示中文\r\n\r\n![image](https://cloud.githubusercontent.com/assets/12488869/9404602/8a9e7d70-4823-11e5-8bd3-87494c981967.png)\r\n"}}