Articles by Richard O. Legendi

igraph degree distribution: count elements

February 13, 2013 | 0 Comments

Unfortunately, the degree.distribution() function of the igraph library returns the intensities of the distribution:__ g __ plot(g) __ summary(g)IGRAPH U--- 10 10 -- Ring graphattr: name (g/c), mutual (g/x), circular (g/x) So instead of having the number of elements, the density/intensities value is returned:__ degree.distribution(... [Read more...]

Presentation at the RECENS Group

November 13, 2012 | 0 Comments

I had a great opportunity to present my work on dynamic networks for the RECENS Group today at the  Hungarian Academy of Sciences, Centre for Social Sciences.It was a great honor, many thanks for the organizers, Károly Takács and Judit Pál for giving me the chance ... [Read more...]

Multiple levelplots with title and subtitle in R

October 23, 2012 | 0 Comments

I had quite a fight with R to put multiple levelplots with a shared title and subtite on the same chart, so I thought I put a PoC code here: library(lattice)m col.l,2), oma=c(2,0,2,0))print(levelplot(m, col.regions=col.l, main="... [Read more...]

igraph 0.6 issues: Changed numbering of Vertices

September 10, 2012 | 0 Comments

I have tried one of my previous scripts with an updated igraph version and I got an interesting (pretty much unexpected) error:At type_indexededgelist.c:269 : invalid (odd) length of edges vector, Invalid edge vectorThe problem is that it was a well-te... [Read more...]

Setting the Default RNG Seed in R

March 4, 2012 | 0 Comments

How to set the default seed for the RNG behind the runif(), sample() and other command? Well, there are several ways doing that (like setting .Random.seed directly), but as the documentation states, set.seed() is the recommended way to specify seeds.__ ?set.seed__ set.seed(0)__ runif(1,0,1)[1] 0.8966972__ set.seed(0)__ runif(1,0,1)[1] 0.8966972__ ... [Read more...]

R subplot() with multiple lines

September 11, 2011 | 0 Comments

I have recently used the subplot() function of the TeachingDemos library for R: I wanted to create a simple embedded chart with multiple lines on it. The trick was to create a simple function that prepares the whole plot and pass it to the subplot() function to execute as shown ... [Read more...]

Multiple plots with subplot in R

September 8, 2011 | 0 Comments

I'm in the middle of creating a poster and wanted to compresss the content by transforming some of the charts into subplots of other charts.I made a little survey and found that there is a TeachingDemos library in CRAN that fits my needs. Well, the parameterization of the functions ... [Read more...]

Free R Book Collection

September 6, 2011 | 0 Comments

I have just encountered some R PDF books that seem quite interesting. One of them is written by Venables himself.The Art of R Programming by Norman MatloffAn Introduction to R by W.N. Venables and D. M. SmithThe R Inferno by Patrick BurnsThe R Guide by... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)