theme_tt | R Documentation |
Theme for ttecon figures.
theme_tt( style = "slide", palette = "green", font = NULL, title_font = NULL, subtitle_font = NULL, xaxis = TRUE, yaxis = FALSE, axis_text_color = "style", axis_title_color = "style", xgrid = FALSE, ygrid = TRUE, xgrid_minor = FALSE, ygrid_minor = FALSE, legend = FALSE, legend_title = FALSE, axis_title = TRUE, axis_title_just = "mm", xticks = FALSE, yticks = FALSE, title_size = NULL, subtitle_size = NULL, caption_size = NULL, legend_size = NULL, legend_title_size = NULL, strip_size = NULL, axis_title_size = NULL, axis_text_size = NULL, thick_line = NULL, thin_line = NULL, panel_spacing = NULL, legend_position = "bottom", font_scale = "normal" )
style |
Change the theme style.
Default to |
palette |
Change the palette.
Default to |
font |
Change the general font family.
Default to |
title_font |
Change the title font family.
Default to |
subtitle_font |
Change the subtitle font family.
Default to |
xaxis |
x-axis line if |
yaxis |
y-axis line if |
axis_text_color |
define the color style for axis text.
If |
axis_title_color |
define the color style for axis title.
If |
xgrid |
Turn on major x-grid-lines if |
ygrid |
Turn on major y-grid-lines if |
xgrid_minor |
Turn on minor x-grid-lines if |
ygrid_minor |
Turn on minor y-grid-lines if |
legend |
Allow legend if |
legend_title |
Allow legend title if |
axis_title |
Allow axis titles if |
axis_title_just |
Axis title font justification, one of |
xticks |
Add x-ticks if |
yticks |
Add y-ticks if |
title_size |
Change title font size.
Default to |
subtitle_size |
Change subtitle font size.
Default to |
caption_size |
Change caption font size.
Default to |
legend_size |
Change legend font size.
Default to |
legend_title_size |
Change legend title font size.
Default to |
strip_size |
Change strip font size.
Default to |
axis_title_size |
Change axis title font size.
Default to |
axis_text_size |
Change axis text font size.
Default to |
thick_line |
Change default thickness of "thicker" lines.
Default to |
thin_line |
Change default thickness of "thinner" lines.
Default to |
panel_spacing |
Change default panel spacing in "lines" unit.
Default to |
legend_position |
Set legend position and alignment accordingly (active if |
font_scale |
Make default font sizes larger and default lines thicker if |
ggplot theme
library(ggplot2) ggplot(mtcars, aes(x = mpg * 0.43, y = wt * 0.4535924, color = factor(cyl))) + geom_point(size = 2) + labs( title = "Car weight vs efficiency", subtitle = "Using sensible metrics", x = "Efficiency (km/l)", y = "Weight (1000 kg)", color = "Cylinders", caption = "Brought to you by the letter 'T'" ) + theme_tt(style = "paper") + scale_color_tt()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.