theme_ku | R Documentation |
ggplot2
theme Think about effect of ggplot2::coord_cartesian(expand = FALSE)
- And also maybe add clip = 'off' - Add spacing
between title and subtitle. - Consider adding KU logo
watermark in corner (with option in function to turn it
off). - Lighten the axis tick labels.
theme_ku( base_size = 10, base_family = c("Arial Narrow", "Arial", "Raleway", "sans"), base_line_size = base_size/22, base_rect_size = base_size/22, title_position = "plot", legend_position = "plot", verbose = FALSE )
base_size |
double, base font size (default: 10) |
base_family |
character, font family in order of
preference; first found will be used (default:
|
base_line_size |
double, line size (default:
|
base_rect_size |
double, rect size (default:
|
title_position |
character, |
legend_position |
character, |
verbose |
logical, whether to show feedback |
Please run extrafont::font_import()
once in your
renv
environment before using this function. You should
also run it for any other non-standard directories where
you operating system keeps fonts. For instance, on
Windows, you can import user-installed fonts with
extrafont::font_import(path.expand("~/AppData/Local/Microsoft/Windows/Fonts"))
.
If you get an error when importing fonts, you may need to
downgrade the Rttf2pt1
package to version 1.3.8 by
running remotes::install_version("Rttf2pt1", version = "1.3.8")
.
ggplot2
ggplot2::theme
if (interactive()) { library(ggplot2) library(kubrand) ggplot2::ggplot(datasets::mtcars, ggplot2::aes(x = mpg)) + ggplot2::geom_dotplot(method = "histodot", binwidth = 1.5) + kubrand::theme_ku() }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.