如何使用sas map 繪制地圖_第1頁
如何使用sas map 繪制地圖_第2頁
如何使用sas map 繪制地圖_第3頁
如何使用sas map 繪制地圖_第4頁
如何使用sas map 繪制地圖_第5頁
已閱讀5頁,還剩23頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論