margin

0th

Percentile

Define margins.

This is a convenience function that creates a grid unit object of the correct length to use for setting margins.

Usage
margin(t = 0, r = 0, b = 0, l = 0, unit = "pt")
Arguments
t, b, r, l
Dimensions of each margin. (To remember order, think trouble).
unit
Default units of dimensions. Defaults to "pt" so it can be most easily scaled with the text.
Aliases
  • margin
Examples
margin(4)
margin(4, 2)
margin(4, 3, 2, 1)
Documentation reproduced from package ggplot2, version 2.0.0, License: GPL-2

Community examples

Looks like there are no examples yet.