I am writing an help file for my own package. When using "Run examples" in the help pane of RStudio, the ggplot figures are much to hihgh and interrupt the reading stream.
I tried something like this
#' dev.new(height = 40, unit = "mm")
and variants, but could not get it to honor the size. I also noted that ggplot2 itself uses the default figure heights in the examples.