({{, (RefLink[CommunityLabels, paclet:ref/CommunityLabels]) 
is an option to (RefLink[CommunityGraphPlot, paclet:ref/CommunityGraphPlot]) that controls what labels and placement to use for communities. }})

OpenersNotesSection(Spacer1)Details

Possible settings include:

OpenersPrimaryExamplesSection(Spacer1)Examples  (9)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Place labels at each community:

CommunityGraphPlot[, CommunityLabels->{"a","b","c"}]

Use any expression as a label:

CommunityGraphPlot[, CommunityLabels->{,,Sin[x]}]

OpenersExampleSection1(Spacer1)Scope  (7)

Use (RefLink[Placed, paclet:ref/Placed]) with symbolic locations to control label placement, including outside positions:

Table[CommunityGraphPlot[, CommunityLabels->Placed[{"a","b","c"},p]],{p,{Before,After,Below,Above}}]

Symbolic outside corner positions:

pl={{Before,Below},{After,Below},{Before,Above},{After,Above}};

Table[CommunityGraphPlot[, CommunityLabels->Placed[{"a","b","c"},p]],{p,pl}]

Symbolic inside positions:

Table[CommunityGraphPlot[, CommunityLabels->Placed[{"a","b","c"},p]],{p,{Left,Top,Right,Bottom}}]

Use explicit coordinates to place the center of labels:

Table[CommunityGraphPlot[, CommunityLabels->Placed[{"a","b","c"},p]],{p,{{0,0},{1/2,1/2},{1,1}}}]

Place all labels at the upper-right corner of the vertex and vary the coordinates within the label:

Table[CommunityGraphPlot[, CommunityLabels->Placed[{"a","b","c"},{{1,1},p}]],{p,{{0,0},{1/2,1/2},{1,1}}}]

Use (RefLink[Labeled, paclet:ref/Labeled]) to add a label to a community:

CommunityGraphPlot[, {{4,7,9,10},Labeled[{1,5,6},"lbl1"],{2,3,8}}]

Use more elaborate formatting functions:

rotateLabel[lbl_]:=Rotate[lbl,45Degree]

CommunityGraphPlot[, CommunityLabels->Placed[{"a","b","c"},Above,rotateLabel]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CommunityGraphPlot, paclet:ref/CommunityGraphPlot])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Labels, paclet:guide/Labels])}})}})