Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

have many plot displayed at the same time #181

Open
casertap opened this issue Aug 20, 2015 · 6 comments
Open

have many plot displayed at the same time #181

casertap opened this issue Aug 20, 2015 · 6 comments

Comments

@casertap
Copy link

Is it possible to have many plot displayed at the same time?
Like an option to always have a new window that open every time you do plot(...)

Thanks,
awesome plugin.

@casertap
Copy link
Author

I found that I can use:

dev.new()

between 2 plot to open a new window.

@jalvesaq
Copy link

Many different commands might result in plots, and I don't know how to detect that there will be a plot. If I knew, I could make the nvimcom package automatically call dev.new() before each plot. Perhaps, what you want is a new option for X11.options(), but, then, you should make your request to the R Core Team. I think RStudio does what you want, but it has its own plotting device, and I am not going to write one.

@casertap
Copy link
Author

Of course.
I am good with the dev.new() technique for now. I have been using Vim-R-plugin for few days and it is awesome. Thanks.

@nacnudus
Copy link

Perhaps another option is a kind of yank ring for plots, with mappings for recordPlot and replayPlot to save and replay plots, storing them in a list object within the vimcom namespace.

@jalvesaq
Copy link

I could implement support for recordPlot() and replayPlot(). It would be easy to add a key binding to manually call recordPlot(), but I still don't know how to detect when a plot was finished and, thus, when recordPlot() should be automatically called.

@jalvesaq
Copy link

I think the best solution would be to have native X11, Quartz and Windows support for this feature. The user would put in the ~/.Rprofile:

grDevices::X11.options(record = TRUE)

Then, when the focus was on the graphical device window, the Left and Right arrow keys could be used to replay the plots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants