View source: R/functions_scatterplot_with_side_density.R View source: R/functions_scatter_with_side_density.R
plot_scatter_side_density.assemble | R Documentation |
synchronizes margins of central scatterplot to align density plots along x and y axis places legend from primary scatter at top-right
plot_scatter_side_density.assemble( components, main_title = "", main_title.x = 0.02, main_title.y = 0.5, main_title.hjust = 0, main_title.vjust = 0.5, rel_widths = c(2, 1), rel_heights = c(1, 2) )
components |
list with ggplot items: scatter, x_density, and y_density |
main_title |
optional title to add at top |
main_title.x |
x coord of title, 0-1, default is 0.02 |
main_title.y |
y coord of title, 0-1, default is 0.5 |
main_title.hjust |
hjust of title, default is 0 |
main_title.vjust |
vjust of title, default is 0.5 |
a grob from cowplot::plot_grid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.