NetdrawGuide.docx
- 文档编号:12475885
- 上传时间:2023-04-19
- 格式:DOCX
- 页数:16
- 大小:67.31KB
NetdrawGuide.docx
《NetdrawGuide.docx》由会员分享,可在线阅读,更多相关《NetdrawGuide.docx(16页珍藏版)》请在冰豆网上搜索。
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
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- NetdrawGuide