Learn R Programming

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

broman (version 0.70-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,654

Version

0.70-4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Karl Broman

Last Published

May 22nd, 2020

Functions in broman (0.70-4)

ciplot

Effect plot with multiple CIs for different groups
hex2dec

Convert from hex to decimal
exit

exit R without saving
attrnames

Get names of attributes
brocolors

Vectors of colors for figures
arrowlocator

Use the locator function to plot an arrow
excel_fig

Excel-style figure displaying contents of a matrix
colwalpha

Convert a color to use alpha transparency
grayplot

Scatterplot with a gray background
%nin%

Value matching
get_precision

Determine the precision of a number
dotplot

Dot chart with a gray background
mypairs

My scatterplot matrix
myround

Round a number, preserving extra 0's
histlines

Utility to create line-based histogram
simp

Numerical integration
bromanversion

Installed version of R/broman
numbers

Numbers spelled out in English
lenuniq

Number of unique values
spell_out

Spell out an integer
perm.test

Permutation t-test
switchv

Vectorized version of switch
strwidth2xlim

Calculate horizontal limit in user coordinates for adding labels
paste00

paste with null or dot as separator and with collapse
compare_rows

Compare rows in a matrix
tritext

Plot text within a Holmans triangle
make

Run make within a package directory
jiggle

Jiggle points horizontally
errors2pushbullet

Send further errors to pushbullet
h

View html version of help file
grayplot_na

Scatterplot with missing values indicated
twocolorpal

Create vector of colors from blue to white to red
maxabs

maximum of absolute value
convert2hex

Convert decimal to hex
paired.perm.test

Paired permutation t-test
paste.

paste with dot separator
runningratio

Running ratio
manyboxplot

Boxplot-like figure for many groups
cf

Compare objects, including missing data pattern
chisq

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

Turn a vector into a single character string
triplot

Plot Holmans triangle
qr2

The QR decomposition of a matrix
quantileSE

Sample quantiles and their standard errors
fac2num

Convert a factor to numeric
setRNGparallel

Set up random number generation for parallel calculations
tripoints

Plot points within a Holmans triangle
pick_more_precise

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

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

Simulate multivariate normal
openfile

Open a file
objectsizes

Calculate sizes of all objects in workspace
plot_crayons

Illustration of crayon colors
venn

Plot to-scale Venn diagram
kbdate

My little date facility
strwidth2lines

Calculate width of a character string in number of lines
theme_karl

Karl's ggplot2 theme
runningmean

Running mean, sum, or median
trigrid

Add grid lines to triplot
trilines

Plot lines within a Holmans triangle
triarrow

Plot an arrow within a Holmans triangle
normalize

Quantile normalization
stop_sending_errors

Stop sending errors to pushbullet
xlimlabel

Calulate horizontal limit in user coordinates for adding labels
pushbullet_devices

Grab info on Pushbullet devices.
winsorize

Winsorize a vector
revgray

Create vector of colors from white to black
note

Send a note to pushbullet
revrainbow

Create vector of colors from blue to red
qqline2

qqline for qqplot
add_commas

Add commas to a large number
align_vectors

Align two vectors
crayons

Crayon colors
done

Send a short message via RPushbullet.