plot_scatter_side_density.assemble: synchronizes margins of central scatterplot to align density...

View source: R/functions_scatterplot_with_side_density.R View source: R/functions_scatter_with_side_density.R

plot_scatter_side_density.assembleR Documentation

synchronizes margins of central scatterplot to align density plots along x and y axis places legend from primary scatter at top-right

Description

synchronizes margins of central scatterplot to align density plots along x and y axis places legend from primary scatter at top-right

Usage

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)
)

Arguments

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

Value

a grob from cowplot::plot_grid


jrboyd/ssvRecipes documentation built on May 22, 2022, 7:07 a.m.