miscellaneous functions

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))
# \donttest{
data$width <- data$width %nin% params$width
#> Error in data$width: object of type 'closure' is not subsettable
# }
# \donttest{
g + small_legend()
#> Error: object 'g' not found
# }
# \donttest{
g + small_guide()
#> Error: object 'g' not found
# }
# \donttest{
g + small_axis()
#> Error: object 'g' not found
# }
# \donttest{
g + small_grid()
#> Error: object 'g' not found
# }
# \donttest{
g + topright_legend()
#> Error: object 'g' not found
# }
# \donttest{
g + topleft_legend()
#> Error: object 'g' not found
# }
# \donttest{
g + bottomleft_legend()
#> Error: object 'g' not found
# }
# \donttest{
g + bottomright_legend()
#> Error: object 'g' not found
# }