NetdrawGuide.docx

上传人:b****1 文档编号:12475885 上传时间:2023-04-19 格式:DOCX 页数:16 大小:67.31KB
下载 相关 举报
NetdrawGuide.docx_第1页
第1页 / 共16页
NetdrawGuide.docx_第2页
第2页 / 共16页
NetdrawGuide.docx_第3页
第3页 / 共16页
NetdrawGuide.docx_第4页
第4页 / 共16页
NetdrawGuide.docx_第5页
第5页 / 共16页
点击查看更多>>
下载资源
资源描述

NetdrawGuide.docx

《NetdrawGuide.docx》由会员分享,可在线阅读,更多相关《NetdrawGuide.docx(16页珍藏版)》请在冰豆网上搜索。

NetdrawGuide.docx

NetdrawGuide

ABriefGuidetoUsingNetDraw

 

NetDrawisaprogramfordrawingsocialnetworks.

OverviewofFeatures

MultipleRelations.Youcanreadinmultiplerelationsonthesamenodes,andswitchbetweenthem(orcombinethem)easily.

ValuedRelations.Ifyoureadinvalueddata,youcansequentially“step”throughdifferentlevelsofdichotomization,effectivelyselectingonlystrongties,onlyweakties,etc.Inaddition,youhavetheoptionoflettingthethicknessoflinescorrespondtostrengthofties.

NodeAttributes.Theprogrammakesitconvenienttoreadinmultiplenodeattributesforuseinsettingcolorsandsizesofnodes(aswellasrims,labels,etc.).Inaddition,theprogrammakesiteasytoturnonandoffgroupsofnodesdefinedbyavariable,suchasmalesormembersofagivenorganization.IftheattributesarereadinusingtheVNAdataformat(seebelow),theycanbetextualinadditiontonumeric.Thismeansthatinsteadofcodinglocationasnumericcodes1,2,3,etc,youcansimplywriteBoston,NewYork,Tokyo…

Analysis.Alimitedsetofanalyticalproceduresareincluded,suchastheidentificationofisolates,components,k-cores,cut-pointsandbi-components(blocks).

2-ModeData.NetDrawcanread2-modedata,suchastheDavis,GardnerandGardnerdataandautomaticallycreateabipartiterepresentationofit.

DataFormats.TheprogramreadsUcinetdatasets(the##hand##dfiles),UcinetDLtextfiles,Pajekfiles(net,cluandvec),andtheprogram’sownVNAtextfileformat,whichallowstheusertocombinenodeattributeswithtieinformation.

SavingData.UsingtheVNAfileformat,theprogramcansaveanetworkalongwithitsspatialconfiguration,nodecolors,shapes,etc.sothatthenexttimeyouopenthefile,thenetworklooksexactlylikeitlookedbefore.TheprogramcanalsosavedataasPajeknetandclufiles,andUcinetdatasets(bothnetworksandattributes).

SavingPictures.Networkdiagramscanbesavedasbitmaps(.bmp),jpegs(.jpg),windowsmetafiles(.wmf)andenhancedmetafiles(.emf).Inaddition,theprogramexportstoPajekandMage.

Printing.ThereisaPrintbutton.Thisisverygoodforcreatingpublication-qualitydiagramsbecausetheresultsutilizethefullresolutionoftheprinter.(Whenyousaveanimagelikeabitmaptodiskandinsertintoadocumentandthenprintthat,theimageresolutionisnobetterthanyourscreen’s.)

AppearanceOptions.Afullrangeofoptionsisimplemented,includingtheabilitytochangesizesandcolorsofnodes,node-rims,labels,linesandbackground.Differentnodeshapesarenotyetimplemented.Youcanalsorotate,flip,shift,resizeandzoomconfigurations.

Layout.Twobasickindsoflayoutsareimplementedatpresent:

acircleandanMDS/springembeddingbasedongeodesicdistance.TheMDSincludesoptionsforexaggeratingclustering,biasingtowardequal-lengthedges,andturningon/offnode-repulsion.

 

GettingStarted

SupposeyouhaveanetworkcurrentlystoredasaUcinetdataset.Todrawitinnetwork,justpresstheOpenFilebuttononthetoolbarandselectthefile.Therestisautomatic.Hereisanexampleofdrawingafilecalledcampnet:

Nowsupposeyouhavesomeinformationabouteachpersonthatyouwouldliketousetointhedisplay.YoumightentertheinformationinatextfilecalledCampAttribs.txt(e.g.,enteritinExcelandSaveAstextfile)inthefollowingformat:

*nodedata

idgenderrolebetweenness

HOLLYfemaleparticipant78.33333588

BRAZEYfemaleparticipant0

CAROLfemaleparticipant1.333333373

PAMfemaleparticipant32.5

PATfemaleparticipant39.5

JENNIEfemaleparticipant6.333333492

PAULINEfemaleparticipant12.5

ANNfemaleparticipant0.5

MICHAELmaleparticipant58.83333206

BILLmaleparticipant0

LEEmaleparticipant5

DONmaleparticipant16.33333397

JOHNmaleparticipant0

HARRYmaleparticipant2.333333254

GERYmaleinstructor54.66666794

STEVEmaleinstructor16.83333397

BERTmaleinstructor13.66666698

RUSSmaleinstructor47.33333206

Notethatthevaluesdonotneedtobenumeric.Theyshouldbeseparatedfromeachotherbyacomma,spaceortab(andvaluesthatcontainspacesshouldbeenclosedinquotesasin“BillSmith”).

Toreadthisfile,gotoFile|Open|VNA|Attributesandselectthefile.ThiswillreadthefileandopentheNodeSelectorwindow,whichlookslikethis:

Usingthiswindowyoucanselectanattribute(IDisselectedbydefault),andthenusethatclickonandoffnodeswithspecificproperties,suchasfemalesorinstructors.

Nowsupposeyouwanttochangethecolorsofnodestoreflectanodeattribute,suchaswantingtopaintmenblueandwomenred.GotoProperties|Nodes|Colors|ByAttribute.Adialogueboxwillopenwhichletsyouchoosetheattribute(gender)andthenchoosethecolorofeachgender.Thedialogueboxlookslikethis:

Youmightalsowanttochangetheshapeofthenodestoreflecttherolethatpersonplaysinthegroup(asindicatedbytheRolevariable).Todothis,gotoProperties|Nodes|Shape|byattribute,whichopensadialogueboxverysimilartothecolorbox,exceptinsteadofcolors,thereareshapes.Somethingsimilarcanbedonewiththesizeofnodes.

Aftersettingeachgendertothedesiredcolor,eachroletodesiredshape,andmakingthesizeofthenodesproportionaltotheirbetweennesscentrality,thenetworkdiagramlookslikethis:

VNADataFormat

 

TheVNAdataformatallowstheusertostorenotonlynetworkdatabutalsoattributesofthenodes,alongwithinformationabouthowtodisplaythem(color,size,etc.).AkeyfeatureofVNAattributedataisthattextualdataispermitted.Inotherwords,insteadofusingnumericcodes,thegendervariablecanhavevalueslike“male”and“female”.

Hereisashortexampleofavnafile:

*nodedata

IDnamegenderage

j101joemale56

w067wendyfemale23

b303billmale48

*tiedata

fromtofriendsadvice

j101w06713

w067j10101

j101b30312

w067b30306

VNAfilesareordinarytextfiles.Theyconsistofsectionscalled“starsections”.Noteveryfilehastohaveeverypossiblestarsection,andsectionscanbeinanyorder.Atthemoment,thereare3possiblestarsections(soontobe6).Theyare:

*nodedata

*nodeproperties

*tiedata

Adescriptionofeachfollows.AttheendofthisdocumentisacompleteVNAfile.

NodeDataSection

TheNodeDatasectioncontainsvariablesthatdescribetheactorsinanetwork.Hereisanexample:

*nodedata

idgenderrolebetweenness

HOLLYfemaleparticipant78.33333588

BRAZEYfemaleparticipant0

CAROLfemaleparticipant1.333333373

PAMfemaleparticipant32.5

PATfemaleparticipant39.5

JENNIEfemaleparticipant6.333333492

PAULINEfemaleparticipant12.5

ANNfemaleparticipant0.5

MICHAELmaleparticipant58.83333206

BILLmaleparticipant0

LEEmaleparticipant5

DONmaleparticipant16.33333397

JOHNmaleparticipant0

HARRYmaleparticipant2.333333254

GERYmaleinstructor54.66666794

STEVEmaleinstructor16.83333397

BERTmaleinstructor13.66666698

RUSSmaleinstructor47.33333206

Thefirstline(“*nodedata”)identifiesthesectionascontainingnodedata.

Thelinefollowing“*nodedata”isalistofvariablenames.Thefirstvariableisassumedtobeauniqueidentifier.Itcanbenumericortext,aslongaseachnodehasadistinctvalue.Ifanyvalue(foranyvariable)containsspacesorotherextraneouspunctuation,itshouldbeenclosedinfullquotes,asin:

“JohnBarrymore”

Followingthelineofvariablenamesistheactualdatacorrespondingtothosevariables.Allfollowinglinesareassumedtobenodedatauntilanewstarcommandisreadortheendofthefileisreached.

NodePropertiesSection

Thenodepropertiessectionisverysimilartothenodedatasection,exceptthatthevariablesallrefertodisplaycharacteristicsofthenodes,suchassize,color,andshape.Hereisanexample:

*Nodeproperties

IDxycolorshapesize

"HOLLY"1094415255110

"BRAZEY"84742255110

"CAROL"1224996255110

"PAM"1249722255110

"PAT"1291551255110

"JENNIE"1518686255110

"PAULINE"1051928255110

"ANN"1330876255110

"MICHAEL"791365255110

"BILL"78552255110

"LEE"80619255110

"DON"994195255110

"JOHN"776894255110

"HARRY"945214255110

"GERY"600578255110

"STEVE"338636255110

"BERT"282897255110

"RUSS"543814255110

Asbefore,thefirstline(“*nodeproperties”)identifiesthesectionascontainingnodeproperties.Thelinefollowing“*nodeproperties”isalistofvariablenames.Asidefromthefirstvariable,whichmustbeID,alltheothervariablescanbeinanyorder,andnoneofthemhavetobethereatall.Butiftheyarepresent,theymustbenamedexactlyasshownintheexample.Variable“X”isthehorizontalcoordinateofanode.Variable“Y”istheverticalcoordinate(the0,0pointisthetopleftcornerofthedrawingarea).Variable“Color”isthecolorofthenode(inhexadecimal).Variable“Shape”istheshapeofthenode(circle,square,up-triangle,etc.).Variable“Size”isthesizeofthenodesinpoints.Finally,(notshownintheexample),thevariable“Shortlabel”givesthelabelforeachnode(ifnotgiven,theprogramusestheIDcode).

Followingthelineofvariablenamesistheactualdatacorrespondingtothosevariables.

TieData

TheTieDatasectioncontainsdyadicdata–thepresence/absenceorstrengthoftieamongpairsofnodesononeormorerelations.Hereisanexample:

*Tiedata

fromtotalkstrength

HOLLYPAM11

HOLLYPAT13

HOLLYDON12

BRAZEYLEE11

BRAZEYSTEVE12

BRAZEYBERT13

CAROLPAM11

CAROLPAT12

CAROLPAULINE13

PAMJENNIE13

PAMPAULINE11

 

Thesecondlinecontainsthelist

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 农林牧渔 > 林学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1