jamba1.0.4 package

Just Analysis Methods Base

adjustAxisLabelMargins

Adjust axis label margins

alpha2col

set R color alpha value

applyCLrange

Apply CL color range

applyXlsxCategoricalFormat

Add categorical colors to 'Excel' 'xlsx' worksheets

applyXlsxConditionalFormat

Xlsx Conditional formatting

asDate

convert date DDmmmYYYY to Date

asSize

convert numeric value or R object to human-readable size

breakDensity

Calculate more detailed density of numeric values

breaksByVector

break a vector into groups

call_fn_ellipsis

Safely call a function using ellipsis

cell_fun_label

ComplexHeatmap cell function to label heatmap cells

check_pkg_installed

Lightweight method to check if an R package is installed

checkLightMode

check lightMode for light background color

col2alpha

get R color alpha value

col2hcl

convert R color to HCL color matrix

col2hsl

convert R color to HSL color matrix

col2hsv

Convert R color to HSV matrix

colNum2excelName

convert column number to 'Excel' column name

color_dither

Make dithered color pattern light-dark

color2gradient

Make a color gradient

coordPresets

Process coordinate adjustment presets

cPaste

paste a list into a delimited vector

dateToDaysOld

convert date to age in days

decideMfrow

Decide plot panel rows, columns for graphics::par(mfrow)

deg2rad

Convert degrees to radians

drawLabels

Draw text labels on a base R plot

exp2signed

exponentiate log2 values with directionality

fillBlanks

Fill blank entries in a vector

fixYellow

Fix yellow color

fixYellowHue

Fix yellow color hue

formatInt

Format an integer as a string

getAxisLabel

Get axis label for minorLogTicks

getColorRamp

get color ramp by name, color, or function

getDate

get simple date string

getPlotAspect

Get aspect ratio for coordinates, plot, or device

grepls

Search for objects in the environment

groupedAxis

Draw grouped axis labels

gsubOrdered

Global substitution into ordered factor

gsubs

Pattern replacement with multiple patterns

handleArgsText

Handle function arguments as text

hcl2col

convert HCL to R color

heads

Apply head() across each element in a list of vectors

heatmap_column_order

Return Heatmap column order from ComplexHeatmap heatmap object

heatmap_row_order

Return Heatmap row order from ComplexHeatmap heatmap object

hsl2col

convert HCL to R color

hsv2col

Convert HSV matrix to R color

igrep

case-insensitive grep

igrepHas

vector contains any case-insensitive grep match

igrepl

case-insensitive logical grepl

imageByColors

Display color raster image using a matrix of colors

imageDefault

Display a color raster image

isColor

detect valid R color

isFALSEV

Vectorized isFALSE

isTRUEV

Vectorized isTRUE

jam_rapply

Jam-specific recursive apply

jamba-package

jamba: Jam Base Methods

jamCalcDensity

Calculate scatter plot point density

jargs

Show R function arguments jam-style

kable_coloring

Extend kableExtra colorization of 'Rmarkdown' tables

list2df

Convert list of vectors to data.frame with item, value, name

lldf

Long listing of R session objects

log2signed

log2 transformation with directionality

make_html_styles

vectorized make_styles for html span output

make_styles

vectorized make_styles for crayon output

makeColorDarker

make R colors darker (or lighter)

makeNames

make unique vector names

mergeAllXY

Merge list of data.frames retaining all rows

middle

Return the middle portion of data similar to head and tail

minorLogTicks

Calculate major and minor tick marks for log-scale axis

minorLogTicksAxis

Display major and minor tick marks for log-scale axis

mixedOrder

order alphanumeric values keeping numeric values in proper order

mixedSort

sort alphanumeric values keeping numeric values in proper order

mixedSortDF

sort data.frame keeping numeric values in proper order

mixedSorts

sort alphanumeric values within a list format

mmixedOrder

order alphanumeric values from a list

nameVector

assign unique names for a vector

nameVectorN

define a named vector using vector names

newestFile

Return the newest file from a vector of files

noiseFloor

Apply noise floor and ceiling to numeric vector

normScale

Scale a numeric vector from 0 to 1

nullPlot

Create a blank plot with optional labels

padInteger

prefix integers with leading zeros

padString

pad a character string to a fixed length

pasteByRow

Paste data.frame rows into character vector

pasteByRowOrdered

Paste data.frame rows into an ordered factor

plotPolygonDensity

Plot distribution and histogram overlay

plotRidges

Plot ridges density plots for numeric matrix input

plotSmoothScatter

Smooth scatter plot with enhancements

printDebug

print colorized output to R console

provigrep

provigrep: progressive case-insensitive value-grep

rad2deg

Convert radians to degrees

rainbow2

Simple rainbow palette replacement

rbindList

rbind a list of vectors into matrix or data.frame

readOpenxlsx

Import one or more data.frame from 'Excel' 'xlsx' format

relist_named

relist a vector which allows re-ordered names

reload_rmarkdown_cache

Reload 'Rmarkdown' cache

renameColumn

Rename columns in a data.frame, matrix, tibble, or GRanges object

rgb2col

Convert RGB color matrix to R color

rlengths

lengths for recursive lists

rmInfinite

remove Infinite values

rmNA

remove NA values

rmNAs

remove NA values from list elements

rmNULL

remove NULL entries from list

rowGroupMeans

Calculate row group means, or other statistics

rowRmMadOutliers

Remove outlier points per row by MAD factor threshold

sclass

return the classes of a list of objects

sdim

print dimensions of list object elements

set_xlsx_colwidths

Set column widths in Xlsx files

set_xlsx_rowheights

Set row heights in Xlsx files

setCLranges

Get Chroma and Luminance ranges for the given lightMode

setPrompt

set R prompt with project name and R version

setTextContrastColor

Define visible text color

shadowText_options

Get and set options for shadowText

shadowText

Draw text with shadow border

showColors

Show colors from a vector or list

sizeAsNum

convert size to numeric value

smoothScatterJam

Smooth scatter plot, Jam style

sqrtAxis

Determine square root axis tick mark positions

tcount

frequency of entries, ordered by frequency

ucfirst

Uppercase the first letter in each word

unalpha

Remove alpha transparency from colors

unigrep

case-insensitive grep, returning unmatched indices

uniques

apply unique to each element of a list

unnestList

Un-nest a nested list into a simple list

unvigrep

case-insensitive grep, returning unmatched values

usrBox

Draw colored box indicating R plot space

vgrep

grep, returning values

vigrep

case-insensitive grep, returning values

warpAroundZero

Warp a vector of numeric values relative to zero

warpRamp

Warp colors in a color ramp

writeOpenxlsx

Export a data.frame to 'Excel' 'xlsx' format

Just analysis methods ('jam') base functions focused on bioinformatics. Version- and gene-centric alphanumeric sort, unique name and version assignment, colorized console and 'HTML' output, color ramp and palette manipulation, 'Rmarkdown' cache import, styled 'Excel' worksheet import and export, interpolated raster output from smooth scatter and image plots, list to delimited vector, efficient list tools.

  • Maintainer: James M. Ward
  • License: MIT + file LICENSE
  • Last published: 2025-03-23