[adegenet-forum] adding labels to compoplot

Roman Lustrik roman.lustrik at biolitika.si
Sat Sep 26 09:18:43 CEST 2015


Hi, 

if you look at `?barplot` you'll notice argument `axis.names`. `barplot` has different arguments for numeric/character labels for some reason. 

This works for me: 



library(adegenet) 

data(microbov) 
dapc3 <- dapc(microbov, n.pca=20, n.da=15) 
compoplot(dapc3, subset = 1:10, cex.names = 0.5, legend = FALSE) 






Cheers, 
Roman 

---- 
In god we trust, all others bring data. 

----- Original Message -----

From: "karine henry" <karine.bounan at florimond-desprez.fr> 
To: adegenet-forum at lists.r-forge.r-project.org 
Sent: Sunday, September 20, 2015 8:53:43 AM 
Subject: [adegenet-forum] adding labels to compoplot 



Apologies for bothering you all, but I'd like to add individual label on compoplot. I run following script which is working well 



compoplot(dapc1, subset=1:200,posi="bottomright", 

txt.leg=paste("Cluster", 1:4), lab=rownames(d), 

ncol=1, xlab="individuals", col=funky(6),cex.lab=.3) 



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. 



Does somebody know how to reduce font size here? 



Sorry to disturb with "stupid" question 



cheers 



Karine 





_______________________________________________ 
adegenet-forum mailing list 
adegenet-forum at lists.r-forge.r-project.org 
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20150926/73c24b8b/attachment.html>


More information about the adegenet-forum mailing list