Displaying 1 result from an estimated 1 matches for "totalloci".
2007 Nov 29
2
How to align the text in the legend
...o align lines of text in the legend of a plot.  It always
defaults to the central alignment.  How can I adjust it to be left
alignment?
Here is the code fragment written in python using Rpy module:
 
  text = 'Quantiles     #Loci\n'
  text += '%s         %6d\n' % (' 100',totalloci)
  text += '%s         %6d\n' % ('  95',per95cntloci)
  text += '%s         %6d\n' % ('  50',per50cntloci)
  r.legend(20,30,text,cex=0.6,bty='n')
 
 
Thanks
Zhaoming
	[[alternative HTML version deleted]]