adds a plot created with ggplot2 to a BentoBox layout

bb_plotGG(
  plot,
  x,
  y,
  width,
  height,
  params = NULL,
  just = c("left", "top"),
  default.units = "inches"
)

Arguments

plot

ggplot object

x

A numeric or unit object specifying x-location.

y

A numeric or unit object specifying y-location.

width

A numeric or unit object specifying width.

height

A numeric or unit object specifying height.

params

an optional "bb_params" object space containing relevant function parameters

just

A string or numeric vector specifying the justification of the plot relative to its (x, y) location

default.units

A string indicating the default units to use if x, y, width, or height are only given as numeric vectors