R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > par3 = '1' > par2 = '2' > par1 = '3' > main = '***TITLE TOO LONG***' > par3 <- '1' > par2 <- '2' > par1 <- '3' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P. (2012) Sociogram 1 (v1.0.7) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_im2_dm2.wasp > #Source of accompanying publication: > # > par1 <- as.numeric(par1) > par2 <- as.numeric(par2) > par3 <- as.numeric(par3) > library(igraph) > ps.options(family='serif') > df <- read.table(file='http://www.wessa.net/download/dataframe.txt',sep=',',header=F) > v <- read.table(file='http://www.wessa.net/download/vertices.txt',sep=',',header=F) > g <- graph.data.frame(df, directed=T, vertices=v) > myvcount = vcount(g) > myarea = myvcount^par1 > myradius = myvcount * myarea > V(g)$size=1 > l <- layout.fruchterman.reingold(g,dim=par2,params=list(niter=5000, area=myarea, repulserad=myradius)) > postscript(file="/var/wessaorg/rcomp/tmp/1d2uv1335802052.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(g, axes=F, xlab='', ylab='', layout=l, vertex.size=V(g)$size, vertex.label.cex=par3, vertex.label.dist=0.5, edge.arrow.size=0.2, vertex.label=V(g)$age, main = main) > dev.off() null device 1 > > try(system("convert tmp/1d2uv1335802052.ps tmp/1d2uv1335802052.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.498 0.138 2.630