A function for add a plot tag to the upper left corner of a ggplot with the total n of the sample. Pass as args the total n, font size and family.
Usage
addPlotTag(n, font_size, font_family, plot_tag_position = c(-0.01, 1.05))Arguments
- n
Required, numeric, total n for the sample in the chart
- font_size
Required, numeric, the font size for the chart.
- font_family
Required, character, the name of the font family to use for chart.
- plot_tag_position
Required, character vector of length two that specifies the x and y coordinates that places the plot tag, defaults to c(-0.01, 1.05).
