Re: [R] Help with R2 OpenBUGs

2012-07-13 Thread Tom Porteus
It seems to not be recognising a function you are calling within your model - taking a quick look you might want to check that table() is a function in OpenBUGS. g <- length(table(G)) TP -- View this message in context: http://r.789695.n4.nabble.com/Help-with-R2-OpenBUGs-tp4636412p4636424.html

[R] Rmpi loading error

2012-01-23 Thread Tom Porteus
I am running R 2.14.1 on a Windows XP (32 bit) system, and am trying to install the package 'Rmpi' to allow me to parallel process on all cores of a quad-core PC (and if that works well, I want to add extra slaves from a dual-core laptop). Rmpi appears to install OK (see below), but I am encounter

[R] Reverse legend label order in barplot

2011-07-01 Thread Tom Porteus
Hi list, I've thus far not found a solution to my problem and hope someone can help. I have a data matrix and wish to plot a stacked bar plot using barplot(). This is simple enough, but I have a problem with the legend labels being in the reverse order from what I want. The default appears to

[R] Lattice: splom plots for different factors with correlation in lower.panel

2011-05-09 Thread Tom Porteus
Hello list, I am looking to create a figure for my dataset using splom, where there is a splom subplot for each level of a factor within, for example, a 2x2 layout. For each subplot, I wish to put the r-value between each variable pair in the lower panel. The code I have thus far is below, using