Description Usage Arguments Details Author(s) Examples
Adjust the Bratttle theme in ggplot figures.
1 2 3 |
include.y.axis |
Logical; should the y axis be drawn |
include.tr.axes |
Logical; should the top (t) and right (r) axes be drawn. Useful for faceted figures |
facet.text.bold |
Logical; should facet titles be bold |
include.gridlines |
Logical; should gridlines be drawn |
is.black.white |
Deprecated; no longer does anything |
base_size |
Numeric; base text size |
base_family |
Character; name of font family. sans is default. |
This is mostly useful for controling faceted figures.
Some aspects of the Brattle style are not implemented. The y-axis is shown by default. The x-axis is always at the bottom of the plot and does not necessarily correspond to the y value of 0. Labels of discrete data levels are shown in a legend, rather than in the plot area.
Charlie Gibbons
1 2 3 4 5 | qplot(carat, price, data = diamonds) + facet_wrap(~cut) +
theme_brattle(include.tr.axes = TRUE, facet.text.bold = TRUE) +
geom_point() +
ggtitle("The relationship between carat and price") +
xlab("Carat") + ylab("Price")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.