10.9 Layout: Margins

  • Specified with layout(margin = list(..)) (see here)
    • b: Sets the bottom margin (in px)
    • l: Sets the left margin (in px)
    • r: Sets the right margin (in px)
    • t: Sets the top margin (in px)
    • pad: Sets the amount of padding (in px) between the plotting area and the axis lines
  • See https://paulcbauer.shinyapps.io/plotlylayout/
## Warning: Specifying width/height in layout() is now deprecated.
## Please specify in ggplotly() or plot_ly()