]> git.donarmstrong.com Git - plotprotein.git/commitdiff
change position of names and justification
authorDon Armstrong <don@donarmstrong.com>
Mon, 29 Dec 2014 18:32:44 +0000 (10:32 -0800)
committerDon Armstrong <don@donarmstrong.com>
Mon, 29 Dec 2014 18:32:44 +0000 (10:32 -0800)
R/plot.clustal.R

index f97587386356603cce9886f52515b9ffb43c3f83..ae9935214d0cbe815595cde0ba2b0d261aa6da1c 100644 (file)
@@ -176,8 +176,9 @@ plot.clustal <- function(clustal,tree=NULL,refseq=1,refseq.start=1) {
     position.strings <- as.character(position.strings)
     position.strings[!wanted.position.strings] <- ""
     grid.text(position.strings,
-              y=unit((length(clustal.names)-1)/2+1,"lines")+unit(0.5,"npc"),
+              y=unit((length(clustal.names)-1)/2+0.6,"lines")+unit(0.5,"npc"),
               x=unit(symbol.pos.x,"mm")+symbol.offset.x,
-              rot=90
+              rot=90,
+              just=c("left","center")
               )
 }