Windows XP SP3.
I have several versions of R. I put one of them in the Windows path, say 2.9.2.
However, when the MATLAB code runs openR, the version of R opened is different. I determine that by doing: evalR('v = version') and getting the components.
How do openR determine which R to open.
Max:
Windows XP SP3.
Installed new R2.12.1; installed package rscproxy_1.3-1.zip
Installed StatconnDCOM1.3-2B7
Modified Windows path to contain path of R.exe
Ran Server01 – Basic Test.
Got error:
"Load Statconnector Server ... Done
Initializing R function call failed Code -2147221485
Text installation problem: unable to load connector"
Also got a Error dialog box with message:
"Test 1 Method ~ of object ~ failed"
Please help.
Thanks.
suplabel
Places text as a title, xlabel, or ylabel on a group of subplots.
Author: Ben Barrowes
I want to have a super-legend.
When the subplots are all multi-lined with the same grouping scheme, their legends will be the same. Putting a legend in each will be too busy and take too much space.
Is there a way to put the common legend outside the plot matrix?
11 Feb 2010
suplabel
Places text as a title, xlabel, or ylabel on a group of subplots.
Author: Ben Barrowes
Hi,
I had the same problem as others. My command was:
a=[1,1,1,2,2,2,3,3,4,4];
b=[1,1,1,2,2,2,3,3,4,4];
putRdata('a',a)
putRdata('b',b);
evalR('c<-fisher.test(a,b)$p.value')
And the result was the error:
'Problem evaluating command c<-fisher.test(a,b)$p.value.
Invoke Error, Dispatch Exception: Object is static; operation not allowed'
My solution was to 'write' down the command to add the data. Then it worked perfectly.
In my case:
X=num2str(a);
X=strrep(X,' ',',');
eval(['evalR(''a<-c(' X ')'')'])
X2=num2str(b);
X2=strrep(X2,' ',',');
eval(['evalR(''b<-c(' X2')'')'])
evalR('c<-fisher.test(a,b)$p.value')
I thought this (ugly) trick might help some people here.
Sébastien
4
13 Jan 2012
Java-based data table
Spreadsheet display/editing/sorting of data with multiple features
I have a exception error everytime if I close the GUI with a built-in uitable. Yair, any idea?
http://www.mathworks.com/matlabcentral/answers/25912-exception-in-thread-awt-eventqueue-0-java-lang-nullpointerexception-using-createtable-java
Also another question, how can I remove the row numbers in the first column??
5
13 Jan 2012
Java-based data table
Spreadsheet display/editing/sorting of data with multiple features
Seems to me that only functions which don't require a data.frame type object work with this link. Eg, if I want to set up a regression, then project it over new data using the 'predict' function in R - no joy (I just get the fitted values over the original data).
Also, fitting a regression with categorical variables - no joy.
Can anyone confirm for me whether this is right please? I'd be very happy if I was wrong and I just need to change something in my set up to achieve the above.
G
4
14 Dec 2011
MATLAB R-link
Functions for calling the statistical package R from within MATLAB.
Comment only