ds_theme_set | R Documentation |
This function sets a ggplot2 theme used throughout the data science labs. It can be called without arguments.
ds_theme_set(
new = "theme_bw",
args = NULL,
base_size = 11,
bold_title = TRUE,
...
)
new |
a prebuilt ggplot2 theme. Defaults to |
args |
the arguments to be passed along to the ggplot2 theme function. Defaults to |
base_size |
if |
bold_title |
if TRUE, sets titles to be bold |
... |
additional arguments to be used by theme |
None
library(ggplot2)
ds_theme_set()
qplot(hp, mpg, data=mtcars, color=am, facets=gear~cyl,
main="Scatterplots of MPG vs. Horsepower",
xlab="Horsepower", ylab="Miles per Gallon")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.