[R] Spacing between x axis and labels

2007-09-25 Thread Christian Schäfer
Hi, my x-axis contains labels that consist of two lines (the actual label and below information about groupsize). Unfortunately, there is too little spacing between labels and tickmarks in this situation. Is there a parameter to tune spacing between axis and labels? Thanks, Chris

Re: [R] generate ROC curve using randomForest package

2007-09-15 Thread Christian Schäfer
L L wrote: > I am new here. I would like to compare the performance of the random forest > model with support vector machine. Can anybody let me know how to generate > a ROC curve for random forest model since there is no need to run the > cross-validation. Thank you very much! The ROCR packa

[R] Class probabilities in rpart

2007-09-15 Thread Christian Schäfer
Hi, the predict.rpart() function from the rpart library allows for calculating the class probabilities for a given test case instead of a discrete class label. How are these class probabilities derived? Is it simply the proportion of the majority class to all cases in a leaf node? Thanks in a

[R] Error handling

2007-09-12 Thread Christian Schäfer
Hi, is there a possibility to catch an occurring error and do an appropriate error handling? (like the "try-catch"-statement in other programming languages) For example: It's quite annoying to run a script for hours only to detect an abortion of the script because of an "subscript out of bound