An attribution function for R. Borrowed from Kieran Healy's code.
Created
March 26, 2014 00:01
-
-
Save lmullen/9774152 to your computer and use it in GitHub Desktop.
Attribution function for R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# An attribution function adapted from Kieran Healy | |
attribution <- function(text = "Lincoln Mullen <http://lincolnmullen.com>", | |
size = 0.75, color = "gray10") { | |
require(grid) | |
pushViewport(viewport()) | |
grid.text(label = text , | |
x = unit(1, "npc") - unit(2, "mm"), | |
y = unit(2, "mm"), | |
just = c("right", "bottom"), | |
gp = gpar(cex = size, col = color)) | |
popViewport() | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment