<html><body><div style="font-family: trebuchet ms,sans-serif; font-size: 12pt; color: #000000"><div>Hi,</div><div><br></div><div>if you look at `?barplot` you'll notice argument `axis.names`. `barplot` has different arguments for numeric/character labels for some reason.</div><div><br></div><div>This works for me:</div><div><br></div><div><p style="margin: 0px; padding-left: 30px;"><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">library(adegenet)</span></p><p style="margin: 0px; padding-left: 30px;"><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">data(microbov)</span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">dapc3 <- dapc(microbov, n.pca=20, n.da=15)</span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">compoplot(dapc3, subset = 1:10, cex.names = 0.5, legend = FALSE)</span></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p></div><div><br></div><div>Cheers,</div><div>Roman</div><div><br></div><div><span name="x"></span>----<br>In god we trust, all others bring data.<span name="x"></span><br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"karine henry" <karine.bounan@florimond-desprez.fr><br><b>To: </b>adegenet-forum@lists.r-forge.r-project.org<br><b>Sent: </b>Sunday, September 20, 2015 8:53:43 AM<br><b>Subject: </b>[adegenet-forum] adding labels to compoplot<br><div><br></div>
<style><!--
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Apologies for bothering you all, but I'd like to add individual label on compoplot. I run following script which is working well</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">compoplot(dapc1, subset=1:200,posi="bottomright",</p>
<p class="MsoNormal">txt.leg=paste("Cluster", 1:4), lab=rownames(d),</p>
<p class="MsoNormal">ncol=1, xlab="individuals", col=funky(6),cex.lab=.3)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">But I get a problem with font size of the label. It seems that cex.label has no effect (whatever the value, font is big and unreadable). I tried other parameters like cex, clab... but not working.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Does somebody know how to reduce font size here?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Sorry to disturb with "stupid" question</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">cheers</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Karine</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
<br>_______________________________________________<br>adegenet-forum mailing list<br>adegenet-forum@lists.r-forge.r-project.org<br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum</div><div><br></div></div></body></html>