powered by
Align ggplot2 graph edges.
ggalign(plot1, plot2)
A ggplot2 plot.
Returns a stacked grid object with left/right edges aligned.
http://stackoverflow.com/a/13295880/1000343
# NOT RUN { require(ggplot2) A <- ggplot(CO2, aes(x=Plant)) + geom_bar() + coord_flip() B <- ggplot(CO2, aes(x=Type)) + geom_bar() + coord_flip() ggalign(A, B) # }
Run the code above in your browser using DataLab