similar to: drawing a network digraph

Displaying 20 results from an estimated 3000 matches similar to: "drawing a network digraph"

2005 Mar 23
4
sampling from a mixture distribution
Dear R users, I would like to sample from a mixture distribution p1*f(x1)+p2*f(x2). I usually sample variates from both distributions and weight them with their respective probabilities, but someone told me that was wrong. What is the correct way? Vumani
2007 Jun 20
2
"xtable" results doesn't correspond to data.frame
Dear useRs, Am trying to use xtable on the following data.frame and I don't get what I expect: example.table <- data.frame(rbind( c("Gender"," "," "," "), cbind(rep(" ",2),c("Male","Female"),c(3.0,4.0),c(3/7,4/7)) )) colnames(example.table) <- c(" "," ","number of
2004 Mar 25
3
subsetting based on vector
Dear R users; I am trying to write a small program which reads in a data set, and selects observations from certain years before the analysis. I have a problem including the selection criteria in the header of the program. Here is the problem; dataFIT<-function(MODEL, MARGINS, yearConsidered){ library(foreign CovPaper<-read.spss("C:/Data/data.sav") NewData <-
2006 Mar 08
2
fitting a distribution using glm
it is easy to fit a distribution using fitdistr poisdata <- rpois(n = 100, lambda = 2) poismle <- fitdistr(poisdata, "Poisson") poismle but i would like to know whether its possible to get an identical result using glm. I use poistab <- data.frame(table(poisdata)) colnames(poistab) <- c("width","freq"); poistab[,"width"] <-
2003 Jun 16
1
Hmisc multiple imputation functions
Dear all; I am trying to use HMISC imputation function to perform multiple imputations on my data and I keep on getting errors for the code given in the help files. When using "aregImpute" the error is; >f <- aregImpute(~y + x1 + x2 + x3, n.impute=100) Loading required package: acepack Iteration:1 Error in .Fortran("wclosepw", as.double(w), as.double(x),
2004 May 27
2
manipulating elements of a vector
Dear R users; I would like to convert a series of vectors to matrices in the following way; (2,1,1) to a matrix 1 0 0 1 0 0 0 1 0 0 0 1 The idea is that the column sum of the matrix should be equal to the elements of the vector. Thanks. Vumani
2003 Jan 22
1
something wrong when using pspline in clogit?
Dear R users: I am not entirely convinced that clogit gives me the correct result when I use pspline() and maybe you could help correct me here. When I add a constant to my covariate I expect only the intercept to change, but not the coefficients. This is true (in clogit) when I assume a linear in the logit model, but the same does not happen when I use pspline(). If I did something similar
2005 Jul 31
3
Drawing a graph with vertices and edges using tcl/tk
Dear all; I would like to draw a graph with vertices and edges, and I guess tcl/tk would be appropriate. I don't know tcl/tk but have googled for a 10-page (or so) introduction to 'getting started with tcl/tk in R' but without any luck. - Does anyone know of the existence of such a document or any other web-based material on the subject? - Does anyone have an (informative) piece of
2003 Jan 17
2
Re: Universal legend in plot
Dear R-users: I asked a question on how I can have a universal legend in a plot and received the following result. I tried using "layout" but I can't seem to work on the "empty" plot (where I have to have the legend). I tried "oma" but I couldn't improve the quality of the plot, and that I didn't know how to specify all the line types using the
2008 Feb 27
1
how to convert a table to adjacency matrix used in social network analysis?
Hi Guys, Do you any one know how to convert a long format table to an adjacency matrix used in sna? The long table looks like p1 p2 counts a b 100 a c 200 a d 100 b c 80 b d 90 b e 100 c d 100 c e 40 d e 60 and I want to convert it to an adjacency matrix which can be used in sna? Any methods will be appreciated! btw, besides sna package, is there any better package can be used in social
2007 Feb 13
4
Advice on visual graph packages
Hey, all. I'm looking for packages that are good at two things 1) Drawing directed graphs (i.e nodes and edges), both with single and double headed arrows, as well as allowing for differences in line width and solid versus dashed. Note: I've tried Rgraphviz here, but have run into some problems (which seem fixable and I may go with it in the end), and it doesn't satisfy need
2010 Dec 01
1
Graph in R with edge weights
Can you please show code example, how to draw graph with some nodes and edges, but with weights. I only found here http://www.bioconductor.org/packages/release/bioc/vignettes/Rgraphviz/inst/doc/Rgraphviz.pdf- Using edge weights for labels, but... Here an example: > library("graph"); library(Rgraphviz) > myNodes = c("s", "p", "q", "r") >
2010 Mar 30
8
about the possible errors in Rgraphviz Package
Hi All, I tried to install the package of Rgraphviz in the following two ways successfully: source("http://bioconductor.org/biocLite.R") biocLite("Rgraphviz") install.packages(pkgs="C:/Progra~1/R/lib_download/Rgraphviz_1.24.0.zip", lib="C:/Progra~1/R/R-2.10.1/library", repos=NULL) but when I loaded the package though library(Rgraphviz) or
2008 Dec 02
2
Can't load Rgraphviz on windows-based R
Hi, I have problem loading Rgraphviz. Following the instructions specified by the README in Rgraphviz_1.20.3.tar.gz didn't help either. o. set the following Windows environment variables accordingly (control panel -> systems -> Advanced -> Environment Variables ): (a) create new user variables: GRAPHVIZ_INSTALL_DIR (e.g., C:\Graphviz-2.21)
2011 Jul 25
1
Rgraphviz installation problem
Dear experts I installed Rgraphviz with the following command: source("http://www.bioconductor.org/biocLite.R") biocLite("Rgraphviz") But had a problem when I tried to load it. This says that libcdt-4.dll is missing in your computer and the following message in R window: > library("Rgraphviz") Loading required package: graph Loading required package:
2007 Jun 13
3
installing Rgraphviz under fedora 5
Dear list, I have a lot of troubles installing Rgraphviz. I installed graphviz 2.13 from "graphviz-2.13.20061222.0540.tar" I installed the library Rgraphviz > getBioC("Rgraphviz") Running biocinstall version 2.0.8 with R version 2.5.0 Your version of R requires version 2.0 of Bioconductor. trying URL '
2009 Dec 23
1
Rgraphviz on mac 10.6.2
Rgraphviz Install works fine (http://www.bioconductor.org/packages/release/bioc/html/Rgraphviz.html) Latest version of graphviz is installed as well however I get following error when loading Rgraphviz (on Mac 10.6.2) Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/Users/jb/Library/R/2.9/library/Rgraphviz/libs/i386/Rgraphviz.so':
2004 Sep 22
1
Rgraphviz compilation error
Hi, I am installing Rgraphviz at Linux Fedora Core 2 with 32 bit AMD athlon with 512 RAM. I have installed graphviz version: graphviz-1.16-1.src.rpm installed already on system. I am doing: $ R CMD INSTALL -l /usr/local/lib/R/library Rgraphviz_1.4.0.tar.gz --------------------------------- * Installing *source* package 'Rgraphviz' ... ** libs gcc -I/usr/local/lib/R/include
2011 May 03
1
Compiling Rgraphiz on Windows 7 64bit with R-2.13.0
Hi all, I am trying to compile Rgraphiz on Windows 7 64bit with R-2.13.0. I have installed Rtools213.exe from [1]. The 64bit packages in [2] provided me with the 64 bit version of graphviz. After intalling the binary version Rgraphviz 1.30 (in 32bit) it complains (as expected) that: > library(Rgraphviz) Error: package 'Rgraphviz' is not installed for 'arch=x64' I
2003 May 09
1
manipulating elements of a matrix
Dear R users: I have the following matrix. 0 1 1 0 1 0 2 1 0 3 0 0 I would like to spread the matrix such that whenever the row sum is greater than 1 the row is repeated the number of times given by the row sum. Furthermore I would like to split the following cases: 0 1 1 such that it map to the following matrix 0 1 0 0 0 1 such that each row adds up to 1. I have no problems with cases