Learn R Programming

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

broman (version 0.69-5)

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.69-5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Karl Broman

Last Published

April 11th, 2019

Functions in broman (0.69-5)

colwalpha

Convert a color to use alpha transparency
compare_rows

Compare rows in a matrix
get_precision

Determine the precision of a number
maxabs

maximum of absolute value
fac2num

Convert a factor to numeric
manyboxplot

Boxplot-like figure for many groups
grayplot

Scatterplot with a gray background
convert2hex

Convert decimal to hex
trilines

Plot lines within a Holmans triangle
triplot

Plot Holmans triangle
crayons

Crayon colors
excel_fig

Excel-style figure displaying contents of a matrix
dotplot

Dot chart with a gray background
exit

exit R without saving
fisher

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

Number of unique values
openfile

Open a file
make

Run make within a package directory
objectsizes

Calculate sizes of all objects in workspace
errors2pushbullet

Send further errors to pushbullet
hex2dec

Convert from hex to decimal
pick_more_precise

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

Grab info on Pushbullet devices.
h

View html version of help file
grayplot_na

Scatterplot with missing values indicated
histlines

Utility to create line-based histogram
plot_crayons

Illustration of crayon colors
done

Send a short message via RPushbullet.
myround

Round a number, preserving extra 0's
mypairs

My scatterplot matrix
rmvn

Simulate multivariate normal
qqline2

qqline for qqplot
stop_sending_errors

Stop sending errors to pushbullet
strwidth2lines

Calculate width of a character string in number of lines
strwidth2xlim

Calculate horizontal limit in user coordinates for adding labels
normalize

Quantile normalization
jiggle

Jiggle points horizontally
switchv

Vectorized version of switch
paired.perm.test

Paired permutation t-test
runningmean

Running mean, sum, or median
%nin%

Value matching
kbdate

My little date facility
numbers

Numbers spelled out in English
perm.test

Permutation t-test
paste00

paste with null or dot as separator and with collapse
note

Send a note to pushbullet
simp

Numerical integration
tripoints

Plot points within a Holmans triangle
tritext

Plot text within a Holmans triangle
quantileSE

Sample quantiles and their standard errors
qr2

The QR decomposition of a matrix
runningratio

Running ratio
setRNGparallel

Set up random number generation for parallel calculations
paste.

paste with dot separator
revgray

Create vector of colors from white to black
spell_out

Spell out an integer
revrainbow

Create vector of colors from blue to red
theme_karl

Karl's ggplot2 theme
vec2string

Turn a vector into a single character string
venn

Plot to-scale Venn diagram
triarrow

Plot an arrow within a Holmans triangle
winsorize

Winsorize a vector
xlimlabel

Calulate horizontal limit in user coordinates for adding labels
add_commas

Add commas to a large number
arrowlocator

Use the locator function to plot an arrow
attrnames

Get names of attributes
align_vectors

Align two vectors
brocolors

Vectors of colors for figures
bromanversion

Installed version of R/broman
ciplot

Effect plot with multiple CIs for different groups
cf

Compare objects, including missing data pattern
chisq

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