版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
如何使用sasmap繪製地圖以臺灣地圖為例想一想如何作畫材料1.一張臺灣地圖2.一份各地區(qū)觀測值資料工具
GMAPprocedure表示方式---平面圖或長方圖Sasmapdatasetsdefaultsaslibrary:MapsTaiwanTaiwan2縣市為最小單位Taiwan:Mapdata-set座標(biāo)Taiwan2:Responsedataset才能畫界線以鄉(xiāng)鎮(zhèn)為最小單位GMAPprocedureUsethePROCGMAPstatementtoidentifythemapandresponsedatasets.UsetheIDstatementtonametheidentificationvariable(s).UseaBLOCK,CHORO,PRISM,orSURFACEstatementtoidentifytheresponsevariableandgeneratethemapProcedureSyntaxPROCGMAP
MAP=map-data-set
<DATA=response-data-set>
<ALL>
<ANNOTATE=Annotate-data-set>
<GOUT=<libref.>output-catalog>
<IMAGEMAP=output-data-set>
IDid-variable(s);
CHORO
response-variable(s)</option(s)>;
BLOCK
response-variable(s)</option(s)>;
PRISM
response-variable(s)</option(s)>;SURFACE
response-variable(s)</option(s)>;ProducingaSimpleSurfaceMapBasicprocedureSimpleandEasychoroCc
gmapdata=maps.taiwan2map=maps.taiwan
idid;
choro
idname/discrete
coutline=black;run;ResponsedatasetMapdata-setResponsevar.?blockCreatesthree-dimensionalblockmapsonwhichlevelsofmagnitudeofthespecifiedresponsevariablesarerepresentedbyblocksofvaryingheight,pattern,andcolor.
datamap;setmaps.taiwan2;ifidin(5
10
15
20)thenno=5;elseifidin(3
6
9
12
15
18)thenno=3;elseifidin(7
14
21)thenno=7;elseno=0;run;
proc
gmapdata=mapmap=maps.taiwanidid;blockno/discretecoutline=blackCBLKOUT=black;run;prismCreatesthree-dimensionalprismmapsinwhichlevelsofmagnitudeofthespecifiedresponsevariablesarerepresentedbypolyhedrons(raisedpolygons)ofvaryingheight,pattern,andcolor.
proc
gmapdata=mapmap=maps.taiwaidid;prismno/discretecoutline=black;run;Advanceprocedure---
toenhancethemapComplicatedandOptionallegendAnnotateByvarpatternexamplegoptionsreset=all;legend1position=(middlerightinside)label=none shape=bar(1,1)pct mode=share across=1;Datacitystar;……;run;proc
gmapdata=strata8map=d.taiwan;bystrata;idid;chorocity1city/discrete
coutline=black
legend=legend1
annotate=citystar;formatcity1citycity.stratast.;run;MethodGoptions---SetthegraphicsenvironmentPatternLegendAnnotatedatasetChorostatement</options>--appearanceoptions--legendoptions--mappingoptionsGoptions---
setthegraphicsenvironmentoptionsthataffecttheappearanceofthedisplayareaandthegraphicsoutputoptionsthataffectcolor
optionsthatcontrolfontselectionortextappearancegoptions
reset=global
gunit=pctborder
cback=whitecolors=(blackbluegreenred)
ctext=black
ftext=swisshtitle=6
htext=3;
patternpattern1v=msc=LIB;pattern2v=msc=LIBG;V=map/plot-pattern
PlotpatternlegendTheLEGENDstatementcontrolsthelocationandappearanceoflegendsontwo-dimensionalplots,contourplots,maps,andcharts.
legend1position=(middlerightinside)label=none shape=bar(1,1)pct mode=share across=1;Annotatedatasetdata
citystar;lengthfunctionstylecolor$8position$1text$20;retainfunction'label'xsysysys'2'hsys'3'when'a';setxy(keep=ididnamexy);ifidin(3051101111201630710154011327120312141510
1003
1702
619);/*city為縣市代碼*/
ifid>999thencity=substr(id,9,2)*1;
elseifid>99thencity=substr(id,10,1)*1;
elsecity=substr(id,11,2)*1;
ifid^=0;/*strata分層*/
if(idin(63
101
102
103
104
105
106
110
111))or(cityin(63))thenstrata=1;if(idin(107
108
109
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
17))or(cityin(17))thenstrata=2;if(cityin(3
4
5
18))thenstrata=3;if(cityin(6
7
8
19))thenstrata=4;if(cityin(9
20
10
21
11))thenstrata=5;if(cityin(64
12
13
16))thenstrata=6;if(cityin(2
14
15))thenstrata=7;style='special';text='M';color='red';size=7;position='5';output;style='KAI';text=idname;color='yellow';size=5;position='8';output;run;Chorostatement</options>;proc
gmapdata=strata8map=d.taiwan;bystrata;idid;chorocity1/discretecoutline=black
legend=legend1
annotate=citystar;formatcity1city.stratast.;run;appearanceoptionsANNOTATE=Annotate-data-setCEMPTY=empty-area-outline-color
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026年商丘工學(xué)院單招職業(yè)技能考試備考題庫含詳細(xì)答案解析
- 2026年黑龍江幼兒師范高等??茖W(xué)校高職單招職業(yè)適應(yīng)性測試備考題庫及答案詳細(xì)解析
- 2026年南寧學(xué)院高職單招職業(yè)適應(yīng)性測試備考題庫及答案詳細(xì)解析
- 素人種草平臺在美妝行業(yè)的價值與傳聲港服務(wù)模式白皮書
- 2026年北京北大方正軟件職業(yè)技術(shù)學(xué)院高職單招職業(yè)適應(yīng)性測試備考題庫及答案詳細(xì)解析
- 2026年鄭州黃河護(hù)理職業(yè)學(xué)院單招綜合素質(zhì)考試模擬試題含詳細(xì)答案解析
- 2026浙江紹興市諸暨市人民醫(yī)院招聘考試重點(diǎn)題庫及答案解析
- 2026屆河北省棗強(qiáng)中學(xué)高三上學(xué)期1月月考?xì)v史試題(含答案及解析)
- 2026年甘肅省慶陽市市本級新開發(fā)城鎮(zhèn)公益性崗位50個參考考試題庫及答案解析
- 2026年湖南民族職業(yè)學(xué)院單招職業(yè)技能考試參考題庫含詳細(xì)答案解析
- 2025中好建造(安徽)科技有限公司第二次社會招聘13人筆試考試備考試題及答案解析
- 移動支付安全體系架構(gòu)-洞察與解讀
- 西門子冰箱 BCD-610W(KA62NV01TI) 說明書
- 水泵維修安全知識培訓(xùn)課件
- 建筑工程施工安全管理標(biāo)準(zhǔn)及實(shí)施方案
- DB43∕T 1358-2017 地質(zhì)災(zāi)害治理工程質(zhì)量驗(yàn)收規(guī)范
- 軍犬的訓(xùn)練考試題及答案
- 臨床病區(qū)藥品管理試題及答案2025年版
- 2025年計劃員崗位考試題及答案
- SY-T5051-2024鉆具穩(wěn)定器-石油天然氣行業(yè)標(biāo)準(zhǔn)
- 服裝廢品管理辦法
評論
0/150
提交評論