misc: miscellaneous functions

miscR Documentation

miscellaneous functions

Description

miscellaneous functions

Usage

range01(x)

x %nin% y

small_legend(fontsize = 5, keysize = 0.1, marginsize = c(-0.1, 0, 0, 0), ...)

small_guide(guidesize = 1, ...)

small_axis(fontsize = 4, linethickness = 0.1, ...)

small_grid(linethickness = 0.1, panelthickness = 0.3, ...)

topright_legend(legendmargin = margin(6, 6, 6, 6), ...)

topleft_legend(legendmargin = margin(6, 6, 6, 6), ...)

bottomleft_legend(legendmargin = margin(6, 6, 6, 6), ...)

bottomright_legend(legendmargin = margin(6, 6, 6, 6), ...)

Arguments

x

a vector

y

a vector

fontsize

float/int

...

passed to ggplot2::theme

guidesize

float/int

linethickness

float/int

legendmargin

margin(float/int, float/int, float/int, float/int)

Value

miscellaneous functions

Examples

x <- range01(runif(100))

data$width <- data$width %nin% params$width


g + small_legend()


g + small_guide()


g + small_axis()


g + small_grid()


g + topright_legend()


g + topleft_legend()


g + bottomleft_legend()


g + bottomright_legend()


zktuong/ktplots documentation built on April 12, 2025, 9:53 p.m.