misc | R Documentation |
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), ...)
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) |
miscellaneous functions
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.