View source: R/theme_consultancy.R
theme_consultancy | R Documentation |
theme_consultancy
sets the following:
Plot background is white; this includes the background for the legend and any facets and their labels.
Axis ticks, lines, text, and titles are black. Same with text in facets.
If it's a concentration-time plot or an enzyme-abundance plot that does not have any facets, then there will be a line on the x axis and a line on the y axis but no overall border around the graph.
If the graph is facetted, the labels for the facets are not enclosed with a border.
Axis titles and, when applicable, the plot title are bold face. Note that expressions cannot be bold, so sometimes this means that one axis will be bold and the other will not.
Font sizes and margins are the same as in the ggplot2 theme "theme_bw"
theme_consultancy(border = FALSE)
a ggplot2 theme
# Some example data to work with
MyData <- data.frame(X = rnorm(10), Y = runif(10))
# Without applying this theme to a standard ggplot2 graph
ggplot(MyData, aes(x = X, y = Y)) + geom_point()
# With application of this theme
ggplot(MyData, aes(x = X, y = Y)) + geom_point() +
theme_consultancy()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.