[R] igraph: error when setting size and shape of vertices

2009-02-04 Thread robbie . heremans
When the shape of all vertices is set to "square" and the size of the vertices is also set, one get following error (commands attached): Error in l[[which.min(sapply(l, function(p) (p[1] - x0)^2 + (p[2] - y0)^2))]] : attempt to select less than one element Is there a way to solve this pr

Re: [R] title second y-axis in lattice plot

2008-11-25 Thread Robbie Heremans
Thanks Deepayan, The following code solves the problem until 'ylab.right' will be implemented. Robbie library(lattice) library(grid) g1<-textGrob("axis title at right", x = unit(0.5, "npc"), y = unit(0.5, "npc"), just = "centre", hjust = NULL, vjust = NULL, rot = 270, check

[R] title second y-axis in lattice plot

2008-11-25 Thread robbie . heremans
Dear R-users, After adding the secondary y-axis at the right side of a lattice xyplot (cfr. Lattice: Multivariate Data Visualization with R - figures 8.4 and 8.6, from http://lmdvr.r-forge.r-project.org/figures/figures.html), I'm trying to add a title to that second y-axis (which has to be dif