X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=Rscripts%2Fsimi.R;h=067eaec6557afdff1cee079cacaf20c01e03412f;hp=12c0b45a7c5878d85be87c8d882e7374bba278fa;hb=ad8fe486b34f1cee918ea8564bf909e30cd25328;hpb=eb3837fa8ebc881ef1df81980ec576ca0451eb40 diff --git a/Rscripts/simi.R b/Rscripts/simi.R index 12c0b45..067eaec 100644 --- a/Rscripts/simi.R +++ b/Rscripts/simi.R @@ -239,7 +239,8 @@ plot.simi <- function(graph.simi, p.type = 'tkplot',filename=NULL, vertex.col = par(mar=c(2,2,1,0)) } par(pch=' ') - plot(g.toplot,vertex.label='', edge.width=we.width, vertex.size=vertex.size, vertex.color=vertex.col, vertex.label.color='white', edge.label=we.label, edge.label.cex=cex, edge.color=edge.col, vertex.label.cex = 0, layout=lo) + plot(g.toplot,vertex.label='', edge.width=we.width, vertex.size=vertex.size, vertex.color=vertex.col, vertex.label.color='white', edge.label=we.label, edge.label.cex=cex, edge.color=edge.col, vertex.label.cex = 0, layout=lo)#, rescale = FALSE) + #txt.layout <- lo txt.layout <- layout.norm(lo, -1, 1, -1, 1, -1, 1) #txt.layout <- txt.layout[order(label.cex),] #vertex.label.color <- vertex.label.color[order(label.cex)] @@ -296,4 +297,9 @@ graph.word <- function(mat.simi, index) { nm[,index] <- mat.simi[,index] nm[index,] <- mat.simi[index,] nm +# cs <- colSums(nm) +# if (cs) nm <- nm[,-which(cs==0)] +# rs <- rowSums(nm) +# if (rs) nm <- nm[-which(rs==0),] +# nm }