Learn R Programming

⚠️There's a newer version (0.84) of this package.Take me there.

broman (version 0.72-4)

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

Version

Install

install.packages('broman')

Monthly Downloads

2,456

Version

0.72-4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Karl Broman

Last Published

February 5th, 2021

Functions in broman (0.72-4)

cf

Compare objects, including missing data pattern
align_vectors

Align two vectors
add_commas

Add commas to a large number
brocolors

Vectors of colors for figures
bromanversion

Installed version of R/broman
chisq

Chi-square test by simulation for a two-way table
attrnames

Get names of attributes
arrowlocator

Use the locator function to plot an arrow
ciplot

Effect plot with multiple CIs for different groups
dotplot

Dot chart with a gray background
compare_rows

Compare rows in a matrix
errors2pushbullet

Send further errors to pushbullet
make

Run make within a package directory
lenuniq

Number of unique values
convert2hex

Convert decimal to hex
get_precision

Determine the precision of a number
openfile

Open a file
objectsizes

Calculate sizes of all objects in workspace
grayplot

Scatterplot with a gray background
crayons

Crayon colors
hex2dec

Convert from hex to decimal
done

Send a short message via RPushbullet.
histlines

Utility to create line-based histogram
normalize

Quantile normalization
%nin%

Value matching
excel_fig

Excel-style figure displaying contents of a matrix
revrainbow

Create vector of colors from blue to red
revgray

Create vector of colors from white to black
exit

exit R without saving
h

View html version of help file
grayplot_na

Scatterplot with missing values indicated
maxabs

maximum of absolute value
manyboxplot

Boxplot-like figure for many groups
numbers

Numbers spelled out in English
qr2

The QR decomposition of a matrix
colwalpha

Convert a color to use alpha transparency
fac2num

Convert a factor to numeric
fisher

Fisher's exact test for a two-way table
jiggle

Jiggle points horizontally
paired.perm.test

Paired permutation t-test
note

Send a note to pushbullet
kbdate

My little date facility
mypairs

My scatterplot matrix
paste00

paste with null or dot as separator and with collapse
setRNGparallel

Set up random number generation for parallel calculations
quantileSE

Sample quantiles and their standard errors
runningratio

Running ratio
perm.test

Permutation t-test
theme_karl

Karl's ggplot2 theme
stop_sending_errors

Stop sending errors to pushbullet
strwidth2lines

Calculate width of a character string in number of lines
tritext

Plot text within a Holmans triangle
paste.

paste with dot separator
twocolorpal

Create vector of colors from blue to white to red
triarrow

Plot an arrow within a Holmans triangle
pushbullet_devices

Grab info on Pushbullet devices.
myround

Round a number, preserving extra 0's
pick_more_precise

Pick the more precise value for each element in two related vectors
triplot

Plot Holmans triangle
tripoints

Plot points within a Holmans triangle
qqline2

qqline for qqplot
strwidth2xlim

Calculate horizontal limit in user coordinates for adding labels
rmvn

Simulate multivariate normal
runningmean

Running mean, sum, or median
switchv

Vectorized version of switch
plot_crayons

Illustration of crayon colors
winsorize

Winsorize a vector
vec2string

Turn a vector into a single character string
xlimlabel

Calulate horizontal limit in user coordinates for adding labels
venn

Plot to-scale Venn diagram
simp

Numerical integration
spell_out

Spell out an integer
trigrid

Add grid lines to triplot
trilines

Plot lines within a Holmans triangle