I am trying to create a simple report that shows some summary DataFrames along with several graphs. I can write several graphic images, for example, SVG, but how can I write several graphic files and a small DataFrame for one SVG, or PDF, etc.?
using Gadfly, DataFrames
plot1 = plot(x = rand(10), y = rand(10))
plot2 = plot(x = rand(10), y = rand(10))
draw(SVG("combined_plost", 5inch, 5inch), hstack(plot1, plot2))
Which gives two graphs next to each other. Now let me say that I also want to include a small DataFrame with the two graphs above that contain summary information, for example. How can i do this?
Something like this I'm asking about:
df = DataFrame()
df[:vars] = collect(1:10)
draw(SVG("combined_plots", 5inch, 5inch), vstack(hstack(plot1, plot2), df)
So I can have my graphic and summary values in one SVG or in a similar format. It does not have to be a DataFrame, another container or format is acceptable.