adjustLeftMargin: Adjust left margin of ggplot2 object to specific margin

Description Usage Arguments

Description

Function creates dummy plot with specific width for left margin, by creating arbitrary y values: Repetition of character "A". Number of repetion can be specified. The resulting width for left in dummy plot will be extracted using ggtable_build(). The grobs of target plot object will be adjustet using ggtable_build(). The width for left margin of the dummy plot will overwrite the width for left margin of the target plot.

Usage

1
adjustLeftMargin(plotdat, chars_n = 10)

Arguments

plotdat

ggplot2 object

nchar4ylabels

integer. Number of "A" character y values. Will result in changing width for left margin.


itawaputtytat/puttytat4R documentation built on Jan. 1, 2020, 9:46 a.m.