powered by
Add a label with the current source file path and run time to a ggplot object.
ggsrc(plt, span = 2, size = 8, col = "grey55", lab = NULL, omit = "")
A ggplot object with the added label.
A ggplot object.
<num> Number of lines: either 1 or 2.
<num>
<num> Text size.
<chr> Colour of the text.
<chr>
<chr> Custom label to use instead of the default.
<chr> Text to omit from the label.
p = mtcars |> ggxy(mpg,hp) p |> ggsrc() p |> ggsrc(lab="My label")
Run the code above in your browser using DataLab