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.
1 | adjustLeftMargin(plotdat, chars_n = 10)
|
plotdat |
ggplot2 object |
nchar4ylabels |
integer. Number of "A" character y values. Will result in changing width for left margin. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.