Package: broman 0.84

broman: Karl Broman's R Code

Miscellaneous R functions, including functions related to graphics (mostly for base graphics), permutation tests, running mean/median, and general utilities.

Authors:Karl W Broman [aut, cre], Aimee Teo Broman [ctb]

broman_0.84.tar.gz
broman_0.84.zip(r-4.5)broman_0.84.zip(r-4.4)broman_0.84.zip(r-4.3)
broman_0.84.tgz(r-4.4-x86_64)broman_0.84.tgz(r-4.4-arm64)broman_0.84.tgz(r-4.3-x86_64)broman_0.84.tgz(r-4.3-arm64)
broman_0.84.tar.gz(r-4.5-noble)broman_0.84.tar.gz(r-4.4-noble)
broman_0.84.tgz(r-4.4-emscripten)broman_0.84.tgz(r-4.3-emscripten)
broman.pdf |broman.html
broman/json (API)
NEWS

# Install 'broman' in R:
install.packages('broman', repos = c('https://kbroman.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/kbroman/broman/issues

Datasets:
  • Numbers - Numbers spelled out in English
  • numbers - Numbers spelled out in English

On CRAN:

8.80 score 181 stars 1 packages 640 scripts 2.2k downloads 2 mentions 79 exports 28 dependencies

Last updated 6 months agofrom:11e84299d0. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 14 2024
R-4.5-win-x86_64OKNov 14 2024
R-4.5-linux-x86_64OKNov 14 2024
R-4.4-win-x86_64OKNov 14 2024
R-4.4-mac-x86_64OKNov 14 2024
R-4.4-mac-aarch64OKNov 14 2024
R-4.3-win-x86_64OKNov 14 2024
R-4.3-mac-x86_64OKNov 14 2024
R-4.3-mac-aarch64OKNov 14 2024

Exports:%nin%%win%%wnin%add_commasalign_vectorsarrowlocatorattrnamesbrocolorsbromanversioncfchisqciplotcolwalphacompare_rowsconvert2hexcrayonsdec2hexdotplotexcel_figexitfac2numfisherget_precisiongrayplotgrayplot_nahhex2dechistlinesjigglekarl_themekbdatelenuniqmakemanyboxplotmaxabsmypairsmyroundnormalizeobjectsizesopenfilepaired.perm.testpaste.paste..paste.0paste0.paste00perm.testpick_more_preciseplot_crayonsqqline2qr2quantileSErevgrayrevrainbowrmvnrunningmeanrunningratiosetRNGparallelsimpspell_outstrwidth2linesstrwidth2xlimswitchvtheme_karltime_axistimeplottraptriarrowtrigridtrilinestriplottripointstritexttwocolorpalunsetRNGparallelvec2stringvennwinsorizexlimlabel

Dependencies:clicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Value matching%nin% %win% %wnin%
Add commas to a large numberadd_commas
Align two vectorsalign_vectors
Use the locator function to plot an arrowarrowlocator
Get names of attributesattrnames
Vectors of colors for figuresbrocolors
Installed version of R/bromanbromanversion
Compare objects, including missing data patterncf cf.default cf.list
Chi-square test by simulation for a two-way tablechisq
Effect plot with multiple CIs for different groupsciplot
Convert a color to use alpha transparencycolwalpha
Compare rows in a matrixcompare_rows
Convert decimal to hexconvert2hex dec2hex
Crayon colorscrayons
Dot chart with a gray backgrounddotplot
Excel-style figure displaying contents of a matrixexcel_fig
exit R without savingexit
Convert a factor to numericfac2num
Fisher's exact test for a two-way tablefisher
Determine the precision of a numberget_precision
Scatterplot with a gray backgroundgrayplot
Scatterplot with missing values indicatedgrayplot_na
View html version of help fileh
Convert from hex to decimalhex2dec
Utility to create line-based histogramhistlines
Jiggle points horizontallyjiggle
My little date facilitykbdate
Number of unique valueslenuniq
Run make within a package directorymake
Boxplot-like figure for many groupsmanyboxplot
maximum of absolute valuemaxabs
My scatterplot matrixmypairs
Round a number, preserving extra 0'smyround
Quantile normalizationnormalize
Numbers spelled out in EnglishNumbers numbers
Calculate sizes of all objects in workspaceobjectsizes
Open a fileopenfile
Paired permutation t-testpaired.perm.test
paste with dot separator
paste with null or dot as separator and with collapsepaste.. paste.0 paste0. paste00
Permutation t-testperm.test
Pick the more precise value for each element in two related vectorspick_more_precise
Illustration of crayon colorsplot_crayons
qqline for qqplotqqline2
The QR decomposition of a matrixqr2
Sample quantiles and their standard errorsquantileSE
Create vector of colors from white to blackrevgray
Create vector of colors from blue to redrevrainbow
Simulate multivariate normalrmvn
Running mean, sum, or medianrunningmean
Running ratiorunningratio
Set up random number generation for parallel calculationssetRNGparallel unsetRNGparallel
Numerical integrationsimp trap
Spell out an integerspell_out
Calculate width of a character string in number of linesstrwidth2lines
Calculate horizontal limit in user coordinates for adding labelsstrwidth2xlim
Vectorized version of switchswitchv
Karl's ggplot2 themekarl_theme theme_karl
Set up a time-based axistime_axis
Scatterplot with date/times on the x-axistimeplot
Plot an arrow within a Holmans triangletriarrow
Add grid lines to triplottrigrid
Plot lines within a Holmans triangletrilines
Plot Holmans triangletriplot
Plot points within a Holmans triangletripoints
Plot text within a Holmans triangletritext
Create vector of colors from blue to white to redtwocolorpal
Turn a vector into a single character stringvec2string
Plot to-scale Venn diagramvenn
Winsorize a vectorwinsorize
Calulate horizontal limit in user coordinates for adding labelsxlimlabel