search for: test1_method1

Displaying 1 result from an estimated 1 matches for "test1_method1".

2011 Jun 01
1
Function to save plots
...ello, I'm using ROCR to plot ROC Curves and I want to automate the saving of plots into PNG files using a custom function. My data frames are named like test1, test2, test3. Each data frame has three variables: method1, method2, goldstandard. Right now, for each plot I have to run: png('test1_method1.png') plot(performance(prediction(test1$method1, test1$goldstandard), "tpr", "fpr")) dev.off() Here is the function I tried to create but I failed: roc <- function(arg1, arg2){ png(paste(arg1, arg2, "png", sep="_")) plot(performance(prediction(ar...