I need a figure with components from Plots and Gadfly, specifically Plots.heatmap() and Gadfly.plot().
The following does not work:
using Plots,Gadfly,Compse
p1 = Plots.heatmap(rand(10,10))
p2 = Gadfly.plot(x=[1,2,3], y=[6,7,8])
vstack(p1,p2)
ERROR: MethodError: no method matching vstack(::Plots.Plot{Plots.GRBackend}, ::Plot)
Closest candidates are:
vstack(::Any, ::Any, ::Any, ::Tuple{Context,Compose.HAlignment}...) at /home/me/.julia/packages/Compose/Opbga/src/stack.jl:81
vstack(::Union{Context, Plot}...) at /home/me/.julia/packages/Gadfly/USbaq/src/Gadfly.jl:902
Stacktrace:
[1] top-level scope at /home/me/code/scratch.jl:119