Learn R Programming

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

broman (version 0.68-2)

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

3,130

Version

0.68-2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Karl W Broman

Last Published

July 25th, 2018

Functions in broman (0.68-2)

kbdate

My little date facility
chisq

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

Numbers spelled out in English
compare_rows

Compare rows in a matrix
colwalpha

Convert a color to use alpha transparency
convert2hex

Convert decimal to hex
pushbullet_devices

Grab info on Pushbullet devices.
brocolors

Vectors of colors for figures
bromanversion

Installed version of R/broman
qqline2

qqline for qqplot
arrowlocator

Use the locator function to plot an arrow
attrnames

Get names of attributes
exit

exit R without saving
strwidth2xlim

Calculate horizontal limit in user coordinates for adding labels
done

Send a short message via RPushbullet.
dotplot

Dot chart with a gray background
crayons

Crayon colors
errors2pushbullet

Send further errors to pushbullet
fac2num

Convert a factor to numeric
histlines

Utility to create line-based histogram
switchv

Vectorized version of switch
excel_fig

Excel-style figure displaying contents of a matrix
jiggle

Jiggle points horizontally
maxabs

maximum of absolute value
h

View html version of help file
make

Run make within a package directory
hex2dec

Convert from hex to decimal
add_commas

Add commas to a large number
mypairs

My scatterplot matrix
stop_sending_errors

Stop sending errors to pushbullet
align_vectors

Align two vectors
paste00

paste with null or dot as separator and with collapse
manyboxplot

Boxplot-like figure for many groups
strwidth2lines

Calculate width of a character string in number of lines
xlimlabel

Calulate horizontal limit in user coordinates for adding labels
fisher

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

Winsorize a vector
perm.test

Permutation t-test
get_precision

Determine the precision of a number
theme_karl

Karl's ggplot2 theme
grayplot

Scatterplot with a gray background
grayplot_na

Scatterplot with missing values indicated
paired.perm.test

Paired permutation t-test
objectsizes

Calculate sizes of all objects in workspace
triarrow

Plot an arrow within a Holmans triangle
myround

Round a number, preserving extra 0's
openfile

Open a file
paste.

paste with dot separator
tripoints

Plot points within a Holmans triangle
normalize

Quantile normalization
revrainbow

Create vector of colors from blue to red
rmvn

Simulate multivariate normal
pick_more_precise

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

Turn a vector into a single character string
venn

Plot to-scale Venn diagram
plot_crayons

Illustration of crayon colors
quantileSE

Sample quantiles and their standard errors
qr2

The QR decomposition of a matrix
runningmean

Running mean, sum, or median
setRNGparallel

Set up random number generation for parallel calculations
tritext

Plot text within a Holmans triangle
runningratio

Running ratio
simp

Numerical integration
trilines

Plot lines within a Holmans triangle
triplot

Plot Holmans triangle
cf

Compare objects, including missing data pattern
lenuniq

Number of unique values
note

Send a note to pushbullet