scatterPlotPlusH3 | R Documentation |
function to generate an aligned set of (maximum 3) plots as a 1x3 matrix (3 columns, 1 row)
scatterPlotPlusH3(
sPlot,
yLeft = clearPlot(),
yRight = clearPlot(),
widths = c(150, 500, 350)
)
sPlot |
ggplot object to be placed in the middle |
yLeft |
ggplot object to be placed on the left (along y-axis of sPlot) |
yRight |
ggplot object to be placed on the right (along y-axis of sPlot) |
widths |
horizontal: two number (integer) vector specifying the amount of the plot to be used for the plots (horizontally) |
a ggplot object
what is returned is grobtable (class gtable): this can be drawn via the grid.draw() function. The plot drawn before this will have to be cleared "manually" via clearPlot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.