Title: | LCBC brand package |
---|---|
Description: | Functions and setups with brand styling and lab general setups. |
Authors: | Athanasia Mo Mowinckel [aut, cre] |
Maintainer: | Athanasia Mo Mowinckel <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1.900 |
Built: | 2024-11-16 04:35:54 UTC |
Source: | https://github.com/LCBC-UiO/lcbcr |
in a ggplot, adding the logo should be added early in the plot building
add_lcbc_logo(type = "main", alpha = 0.4, ...)
add_lcbc_logo(type = "main", alpha = 0.4, ...)
type |
type of logo to get |
alpha |
opacity of logo |
... |
arguments to |
library(ggplot2) ggplot(mtcars, aes(x = wt, y = disp, colour = cyl)) + geom_point() + add_lcbc_logo()
library(ggplot2) ggplot(mtcars, aes(x = wt, y = disp, colour = cyl)) + geom_point() + add_lcbc_logo()
Initiate a paper project
create_paper_project( dir, title, use_git = TRUE, use_renv = FALSE, edit = interactive() )
create_paper_project( dir, title, use_git = TRUE, use_renv = FALSE, edit = interactive() )
dir |
directory to create the project in |
title |
Title of the project |
use_git |
initiate git or not (default TRUE) |
use_renv |
initiate renv or not (default FALSE) |
edit |
Should files to edit be opened. |
no return
Function to extract lcbc colors as hex codes
lcbc_cols(...)
lcbc_cols(...)
... |
Character names of lcbc_colors |
Install Avenir font for LCBC branding
lcbc_install_font(...)
lcbc_install_font(...)
... |
arguments to |
lcbc_install_font()
lcbc_install_font()
LCBC logo graphics object
lcbc_logo_grob(type = "main", alpha = 0.4)
lcbc_logo_grob(type = "main", alpha = 0.4)
type |
type of logo to get |
alpha |
opacity of logo |
graphics object (grob)
List available LCBC logo variations
lcbc_logo_list()
lcbc_logo_list()
character vector of logo names
lcbc_logo_list()
lcbc_logo_list()
Return function to interpolate a lcbc color palette
lcbc_pal(palette = "main", reverse = FALSE, ...)
lcbc_pal(palette = "main", reverse = FALSE, ...)
palette |
Character name of palette in lcbc_palettes |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments to pass to colorRampPalette() |
Projects at LCBC
lcbc_projects()
lcbc_projects()
data frame with information on LCBC projects
lcbc_projects()
lcbc_projects()
LCBC MRI sites
lcbc_sites()
lcbc_sites()
data frame with information on LCBC MRI data sites
lcbc_sites()
lcbc_sites()
Function to extract project colors as hex codes
project_cols(...)
project_cols(...)
... |
Character names of project_colors |
Return function to interpolate a project color palette
project_pal(palette = "main", reverse = FALSE, ...)
project_pal(palette = "main", reverse = FALSE, ...)
palette |
Character name of palette in project_palettes |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments to pass to colorRampPalette() |
Color scale constructor for lcbc colors
scale_color_lcbc(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_color_lcbc(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in lcbc_palettes |
discrete |
Boolean indicating whether color aesthetic is discrete or not |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments passed to discrete_scale() or scale_color_gradientn(), used respectively when discrete is TRUE or FALSE |
Color scale constructor for proj colors
scale_color_proj(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_color_proj(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in project_palettes |
discrete |
Boolean indicating whether color aesthetic is discrete or not |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments passed to discrete_scale() or scale_color_gradientn(), used respectively when discrete is TRUE or FALSE |
Colour scale constructor for lcbc colors
scale_colour_lcbc(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_colour_lcbc(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in lcbc_palettes |
discrete |
Boolean indicating whether color aesthetic is discrete or not |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments passed to discrete_scale() or scale_color_gradientn(), used respectively when discrete is TRUE or FALSE |
Colour scale constructor for proj colors
scale_colour_proj(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_colour_proj(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in project_palettes |
discrete |
Boolean indicating whether color aesthetic is discrete or not |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments passed to discrete_scale() or scale_color_gradientn(), used respectively when discrete is TRUE or FALSE |
Fill scale constructor for lcbc colors
scale_fill_lcbc(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_fill_lcbc(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in lcbc_palettes |
discrete |
Boolean indicating whether color aesthetic is discrete or not |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments passed to discrete_scale() or scale_color_gradientn(), used respectively when discrete is TRUE or FALSE |
Fill scale constructor for proj colors
scale_fill_proj(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_fill_proj(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in project_palettes |
discrete |
Boolean indicating whether color aesthetic is discrete or not |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments passed to discrete_scale() or scale_color_gradientn(), used respectively when discrete is TRUE or FALSE |
ggplot minimal theme for lcbc
theme_lcbc(base_size = NULL)
theme_lcbc(base_size = NULL)
base_size |
text size |
ggplot minimal theme for lcbc
theme_lcbc_dark(base_size = NULL)
theme_lcbc_dark(base_size = NULL)
base_size |
text size |
ggplot dark theme for lcbc
theme_lcbc_dark_grid(base_size = NULL)
theme_lcbc_dark_grid(base_size = NULL)
base_size |
text size |
ggplot minimal theme for lcbc
theme_lcbc_dark_void(base_size = NULL)
theme_lcbc_dark_void(base_size = NULL)
base_size |
text size |
ggplot theme for lcbc
theme_lcbc_grid(base_size = 10)
theme_lcbc_grid(base_size = 10)
base_size |
text size |
ggplot minimal theme for lcbc
theme_lcbc_void(base_size = NULL)
theme_lcbc_void(base_size = NULL)
base_size |
text size |