lunaize | R Documentation |
Re-theme plot a la Luna This function stylizes a ggplot2 plot to match the aesthetic of Dr. Luna * Removes grid lines and borders * Increases font size * Increases gap between x and y axis titles (by adding "\n" to the labels)
lunaize(p, ajust = 0.05)
p |
plot to retheme |
ajust |
vjust and hjust values for axis text Defauts to .05 |
p <- ggplot(iris,aes(x=Sepal.Length,y=Petal.Width))+geom_point()
lunaize(p) # or with magrittr/dplyr: p %>% lunaize
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.