Community & Support
Learn
Marketplace
Discussions
Categories
Discussions
General
Platform
Academic
Partner
Regional
User Groups
Documentation
Events
Altair Exchange
Share or Download Projects
Resources
News & Instructions
Programs
YouTube
Employee Resources
This tab can be seen by employees only. Please do not share these resources externally.
Groups
Join a User Group
Support
Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Retrieving R plot from inside Execute Script (R) within RapidMiner process
ElPato
I would love to be able to generate a "plot" using R inside an "Execute Script (R)" and be able to view the plot once the Rapidminer process finishes. Any ideas?
ImageMiner made a post about 5 months ago asking about this functionality, and it was said this was being developed. Just wondering if anyone has found a workaround to make this possible or if this functionality will be available in the not-so-distant future. I am new to R, so if there is a workaround, please be gentle :-).
Thanks in advance,
David
Find more posts tagged with
AI Studio
R
Accepted answers
All comments
robert
Here's a workaround that meets your stated criteria - an R script that both saves a plot and opens it automatically. The benefit is that you have full control over the plot (e.g. using Cairo), giving you a better quality vs. a direct screen output.
library(quantmod)
getSymbols("GS")
pdf("test.pdf")
chartSeries(GS)
dev.off()
system('evince test.pdf')
Of course, the example would work with any other plots.
Anybody has a better workaround?
robert
... and here's the non-workaround:
just open a device in the script:
X11()
# your plots here
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups