Displaying 2 results from an estimated 2 matches for "merik".
Did you mean:
erik
2011 Jul 26
2
Accessing the index of factor in by() function
...*
Now, I tried:
*by(value, id, my.plot)*
But of course, it didn't do what I wanted. I realized that the parameter
passed to my.plot, is a "secion of value" per ID, and not the ID value
itself. Question is, how can I get the value of factor ID at each level of
by()?
Please advise,
Merik
[[alternative HTML version deleted]]
2011 Jun 01
1
Function to save plots
Hello,
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),