Rdocumentation
powered by
Learn R Programming
broman (version 0.92)
Karl Broman's R Code
Description
Miscellaneous R functions, including functions related to graphics (mostly for base graphics), permutation tests, running mean/median, and general utilities.
Copy Link
Link to current version
Version
Version
0.92
0.90
0.88
0.86
0.84
0.82
0.80
0.76
0.72-4
0.71-6
0.70-4
0.69-5
0.68-2
0.67-4
0.65-4
0.65-1
0.64-3
0.62-1
0.59-5
0.55-2
0.48-2
0.44-1
0.39-1
0.38-2
Install
install.packages('broman')
Monthly Downloads
4,046
Version
0.92
License
GPL-3
Issues
0
Pull Requests
0
Stars
182
Forks
51
Repository
https://github.com/kbroman/broman
Maintainer
Karl Broman
Last Published
December 8th, 2025
Functions in broman (0.92)
Search all functions
colwalpha
Convert a color to use alpha transparency
compare_rows
Compare rows in a matrix
get_precision
Determine the precision of a number
histlines
Utility to create line-based histogram
crayons
Crayon colors
dotplot
Dot chart with a gray background
lenuniq
Number of unique values
grayplot
Scatterplot with a gray background
maxabs
maximum of absolute value
paste.
paste with dot separator
convert2hex
Convert decimal to hex
manyboxplot
Boxplot-like figure for many groups
hex2dec
Convert from hex to decimal
fac2num
Convert a factor to numeric
fisher
Fisher's exact test for a two-way table
excel_fig
Excel-style figure displaying contents of a matrix
make
Run make within a package directory
runningmean
Running mean, sum, or median
setRNGparallel
Set up random number generation for parallel calculations
simp
Numerical integration
rmvn
Simulate multivariate normal
paste00
paste with null or dot as separator and with collapse
runningratio
Running ratio
runningratio2
Running ratio with adaptive window
numbers
Numbers spelled out in English
jiggle
Jiggle points horizontally
myround
Round a number, preserving extra 0's
revgray
Create vector of colors from white to black
mypairs
My scatterplot matrix
exit
exit R without saving
objectsizes
Calculate sizes of all objects in workspace
plot_crayons
Illustration of crayon colors
grayplot_na
Scatterplot with missing values indicated
h
View html version of help file
revrainbow
Create vector of colors from blue to red
tritext
Plot text within a Holmans triangle
vec2string
Turn a vector into a single character string
xlimlabel
Calulate horizontal limit in user coordinates for adding labels
kbdate
My little date facility
venn
Plot to-scale Venn diagram
winsorize
Winsorize a vector
qqline2
qqline for qqplot
spell_out
Spell out an integer
paired.perm.test
Paired permutation t-test
openfile
Open a file
%nin%
Value matching
qr2
The QR decomposition of a matrix
perm.test
Permutation t-test
twocolorpal
Create vector of colors from blue to white to red
normalize
Quantile normalization
trigrid
Add grid lines to triplot
strwidth2lines
Calculate width of a character string in number of lines
trilines
Plot lines within a Holmans triangle
pick_more_precise
Pick the more precise value for each element in two related vectors
timeplot
Scatterplot with date/times on the x-axis
theme_karl
Karl's ggplot2 theme
time_axis
Set up a time-based axis
triarrow
Plot an arrow within a Holmans triangle
quantileSE
Sample quantiles and their standard errors
switchv
Vectorized version of switch
strwidth2xlim
Calculate horizontal limit in user coordinates for adding labels
triplot
Plot Holmans triangle
tripoints
Plot points within a Holmans triangle
attrnames
Get names of attributes
align_vectors
Align two vectors
add_commas
Add commas to a large number
bromanversion
Installed version of R/broman
arrowlocator
Use the locator function to plot an arrow
brocolors
Vectors of colors for figures
chisq
Chi-square test by simulation for a two-way table
ciplot
Effect plot with multiple CIs for different groups
cf
Compare objects, including missing data pattern