Karl Broman's R Code

add_commas | Add commas to a large number |

arrowlocator | Use the locator function to plot an arrow |

attrnames | Get names of attributes |

brocolors | Vectors of colors for figures |

bromanversion | Installed version of R/broman |

cf | Compare objects, including missing data pattern |

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

colwalpha | Convert a color to use alpha transparency |

compare_rows | Compare rows in a matrix |

convert2hex | Convert decimal to hex |

crayons | Crayon colors |

done | Send a short message via RPushbullet. |

dotplot | Dot chart with a gray background |

errors2pushbullet | Send further errors to pushbullet |

excel_fig | Excel-style figure displaying contents of a matrix |

exit | exit R without saving |

fac2num | Convert a factor to numeric |

fisher | Fisher's exact test for a two-way table |

grayplot | Plot with a gray background |

h | View html version of help file |

hex2dec | Convert from hex to decimal |

histlines | Utility to create line-based histogram |

jiggle | Jiggle points horizontally |

kbdate | My little date facility |

lenuniq | Number of unique values |

make | Run make within a package directory |

manyboxplot | Boxplot-like figure for many groups |

maxabs | maximum of absolute value |

mypairs | My scatterplot matrix |

myround | Round a number, preserving extra 0's |

normalize | Quantile normalization |

note | Send a note to pushbullet |

numbers | Numbers spelled out in English |

objectsizes | Calculate sizes of all objects in workspace |

openfile | Open a file |

paired.perm.test | Paired permutation t-test |

paste. | paste with dot separator |

paste00 | paste with null or dot as separator and with collapse |

perm.test | Permutation t-test |

plot_crayons | Illustration of crayon colors |

pushbullet_devices | Grab info on Pushbullet devices. |

qqline2 | qqline for qqplot |

qr2 | The QR decomposition of a matrix |

quantileSE | Sample quantiles and their standard errors |

revrainbow | Create vector of colors from blue to red |

rmvn | Simulate multivariate normal |

runningmean | Running mean, sum, or median |

runningratio | Running ratio |

setRNGparallel | Set up random number generation for parallel calculations |

simp | Numerical integration |

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

switchv | Vectorized version of switch |

theme_karl | Karl's ggplot2 theme |

triarrow | Plot an arrow within a Holmans triangle |

trilines | Plot lines within a Holmans triangle |

triplot | Plot Holmans triangle |

tripoints | Plot points within a Holmans triangle |

venn | Plot to-scale Venn diagram |

winsorize | Winsorize a vector |

xlimlabel | Calulate horizontal limit in user coordinates for adding... |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.