[問題] plot中文標題成方格(MAC)

作者: hakiooi (霸氣初心者)   2016-07-06 01:39:00
[問題類型]:
經驗諮詢(我想用R 連接某些資料庫,請問大家的經驗)
[軟體熟悉度]:
請把以下不需要的部份刪除
新手(沒寫過程式,R 是我的第一次)
[問題敘述]:
想要跑calendarplot,但是標題是中文的話就會變成方格,在其他plot沒有這個問題,中文正常顯示。另外,在主標題下面,如7月、8月,「月」這個字也會變方格
[程式範例]:
calendarPlot(data, pollutant ="unable",month=c(7:8), year=2016,w.shift=1,anntate="unable",key = F)
http://imgur.com/oyYHe12
[環境敘述]:
R version 3.2.4 (2016-03-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.5 (El Capitan)
locale:
[1] zh_TW.UTF-8/zh_TW.UTF-8/zh_TW.UTF-8/C/zh_TW.UTF-8/zh_TW.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] openair_1.8-6 maps_3.1.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.4 mapdata_2.2-6 RColorBrewer_1.1-2 plyr_1.8.3 tools_3.2.4
[6] lubridate_1.5.6 gtable_0.2.0 nlme_3.1-125 lattice_0.20-33 mgcv_1.8-12
[11] png_0.1-7 Matrix_1.2-4 DBI_0.3.1 mapproj_1.2-4 parallel_3.2.4
[16] hexbin_1.27.1 proto_0.3-10 stringr_1.0.0 dplyr_0.4.3 cluster_2.0.3
[21] RgoogleMaps_1.2.0.7 grid_3.2.4 R6_2.1.2 jpeg_0.1-8 RJSONIO_1.3-0
[26] sp_1.2-3 ggmap_2.6.1 latticeExtra_0.6-28 ggplot2_2.1.0 reshape2_1.4.1
[31] magrittr_1.5 scales_0.4.0 assertthat_0.1 geosphere_1.5-1 colorspace_1.2-6
[36] stringi_1.0-1 lazyeval_0.1.10 munsell_0.4.3 rjson_0.2.15
[關鍵字]:
calendarplot, openair,中文編碼
選擇性,也許未來有用
作者: celestialgod (天)   2016-07-06 01:42:00
#1NTKjpXD 標題改mac中文plot方格問題,謝謝
作者: hakiooi (霸氣初心者)   2016-07-06 02:13:00
已改,但應該不是PLOT問題,而是只有calendar出問題的樣

Links booklink

Contact Us: admin [ a t ] ucptt.com