| ggsrc | R Documentation |
Add a label with the current source file path and run time to a ggplot object.
ggsrc(
plt,
span = 1,
size = 8,
col = "grey55",
lab = NULL,
omit = "",
tz = TRUE
)
plt |
A ggplot object. |
span |
|
size |
|
col |
|
lab |
|
omit |
|
tz |
|
A ggplot object with the added label.
p = mtcars |> ggxy(mpg,hp)
p |> ggsrc()
p |> ggsrc(lab="My label")
p |> ggsrc(lab="My label",omit="My ")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.