Package 'lcbcr'

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

Help Index


Initiate a paper project

Description

Initiate a paper project

Usage

create_paper_project(
  dir,
  title,
  use_git = TRUE,
  use_renv = FALSE,
  edit = interactive()
)

Arguments

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.

Value

no return


Function to extract lcbc colors as hex codes

Description

Function to extract lcbc colors as hex codes

Usage

lcbc_cols(...)

Arguments

...

Character names of lcbc_colors


Install Avenir font for LCBC branding

Description

Install Avenir font for LCBC branding

Usage

lcbc_install_font(...)

Arguments

...

arguments to font_import

Examples

lcbc_install_font()

LCBC logo graphics object

Description

LCBC logo graphics object

Usage

lcbc_logo_grob(type = "main", alpha = 0.4)

Arguments

type

type of logo to get

alpha

opacity of logo

Value

graphics object (grob)


List available LCBC logo variations

Description

List available LCBC logo variations

Usage

lcbc_logo_list()

Value

character vector of logo names

Examples

lcbc_logo_list()

Return function to interpolate a lcbc color palette

Description

Return function to interpolate a lcbc color palette

Usage

lcbc_pal(palette = "main", reverse = FALSE, ...)

Arguments

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

Description

Projects at LCBC

Usage

lcbc_projects()

Value

data frame with information on LCBC projects

Examples

lcbc_projects()

LCBC MRI sites

Description

LCBC MRI sites

Usage

lcbc_sites()

Value

data frame with information on LCBC MRI data sites

Examples

lcbc_sites()

Function to extract project colors as hex codes

Description

Function to extract project colors as hex codes

Usage

project_cols(...)

Arguments

...

Character names of project_colors


Return function to interpolate a project color palette

Description

Return function to interpolate a project color palette

Usage

project_pal(palette = "main", reverse = FALSE, ...)

Arguments

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

Description

Color scale constructor for lcbc colors

Usage

scale_color_lcbc(palette = "main", discrete = TRUE, reverse = FALSE, ...)

Arguments

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

Description

Color scale constructor for proj colors

Usage

scale_color_proj(palette = "main", discrete = TRUE, reverse = FALSE, ...)

Arguments

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

Description

Colour scale constructor for lcbc colors

Usage

scale_colour_lcbc(palette = "main", discrete = TRUE, reverse = FALSE, ...)

Arguments

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

Description

Colour scale constructor for proj colors

Usage

scale_colour_proj(palette = "main", discrete = TRUE, reverse = FALSE, ...)

Arguments

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

Description

Fill scale constructor for lcbc colors

Usage

scale_fill_lcbc(palette = "main", discrete = TRUE, reverse = FALSE, ...)

Arguments

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

Description

Fill scale constructor for proj colors

Usage

scale_fill_proj(palette = "main", discrete = TRUE, reverse = FALSE, ...)

Arguments

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

Description

ggplot minimal theme for lcbc

Usage

theme_lcbc(base_size = NULL)

Arguments

base_size

text size


ggplot minimal theme for lcbc

Description

ggplot minimal theme for lcbc

Usage

theme_lcbc_dark(base_size = NULL)

Arguments

base_size

text size


ggplot dark theme for lcbc

Description

ggplot dark theme for lcbc

Usage

theme_lcbc_dark_grid(base_size = NULL)

Arguments

base_size

text size


ggplot minimal theme for lcbc

Description

ggplot minimal theme for lcbc

Usage

theme_lcbc_dark_void(base_size = NULL)

Arguments

base_size

text size


ggplot theme for lcbc

Description

ggplot theme for lcbc

Usage

theme_lcbc_grid(base_size = 10)

Arguments

base_size

text size


ggplot minimal theme for lcbc

Description

ggplot minimal theme for lcbc

Usage

theme_lcbc_void(base_size = NULL)

Arguments

base_size

text size