RapidMiner

Plotting in R with RapidMiner

Super Contributor

Plotting in R with RapidMiner

Problem: You've decided to use plot inside of your Execute R operator but when you return the plot you get no plot when the process is run, instead you get a description tab that says File Memory Buffered File

Example of plot in R
rm_main = function(data)

{
plot(1:5,2:6)
return(plot)

}


Solution: If you do not want to rely on the charting plots that come preloaded with your RapidMiner Studio, y
ou should export the plot in your R script using any of the supported formats.


Here is an example doing so to a pdf

pdf(“C:/Users/.../Desktop/plots.pdf”)
plot(1:5,2:6)
dev.off()

You can find other formats here

http://www.cookbook-r.com/Graphs/Output_to_a_file/