'Display R plot through Jython

Using subprocess.call I run an R script through jython. The R script is:

library(igraph)
file_read = read.table("/Users/prachikhattar/Desktop/coding/dummy_file.txt", sep = "       ",header = T)
edge_table = data.frame(source = file_read$source, target = file_read$target)
graph_object = graph_from_data_frame(d = edge_table, directed = T)
plot(graph_object)

Now I want to display this plot when Jython code is run. If anyone knows. how to go ahead about this, please help.

When button is clicked, a plot should come up.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source