Creates plot containing the name of a given upper group. Used in combination with the patchwork package to plot the names of the upper groups within the hhm function.
plt_ttl(ttl, axs = "x", rotate_title = TRUE)
The name of the upper group.
The axis on which the name will appear (defaults to "x"). If `x`, the text will be written at the top-centre of the plot. If `y`, the text will be written at the middle-right of the plot.
Whether the title should be rotate to be perpendicular to the axis (defaults to TRUE). If TRUE, the title text on the x and y axes will be printed horizontally and vertically respectively, with the reverse orientation if set to FALSE.
A ggplot object containing the title of a given upper group, for use in the hhm function.
plt_ttl("Group 1", axs = "y")
plt_ttl("Group 2")
plt_ttl("Group 1", axs = "y",rotate_title = FALSE)
plt_ttl("Group 2" ,rotate_title = FALSE)