grepls1()
- easy extension of grepls(..., 1)
which searches only the
user environment.plotSmoothScatterText()
- text version of plotSmoothScatter()
that uses package "nostalgiR"
enhanced with density per point.
Optional ability to tile multiple plot panels, stopping short of
replicating ggplot2.imageByColorsText()
- text version of imageByColors()
which
takes a matrix of colors, a matrix of labels, and displays it as
an image. Bonus points for centering text labels across multiple
neighboring cells with same color and label.A long-awaited port of a function I previously used all the time but have not properly ported into an R package, and so I miss using it. sad face
colnames
and rownames
tibble
!)Numeric values are formatted for friendly output:
values above 1000
use big.mark=","
to appear like this: 1,000
3.141592653589793116
it will display 3.14
.c(1000, 0.001)
will be displayed
c("1,000", "0.001")
- and not the default which is to apply the
same level of detail to every value, for example
not this: c("1e+03", "1e-03")
, and not this: c("1,000.000", "0.001")
P-values may have specific formatting rules, I forget the details rn.
If not all columns will fit the console width when shrunk down to some a minimum width, it splits output across multiple lines, and includes row name and row number beside each split.
For me, it is not helpful to print only the first n
columns, the
main purpose is to see every column.
There is some logic to determine a reasonable size to shrink each
column, for example nchar()
upper quartile.
Possibly the most useful feature is that values in each column are colorized. This step helps recognize outliers, typos, inconsistencies, etc.
Each column is colorized based upon its data type:
character
columns are colorized using supplied color_sub
for
name:color substitution, otherwise it calls colorjam::rainbowJam()
.
numeric
columns are colorized one of a few ways:
colorjam::col_div_xf()
extended to the maximum absolute value, linear scale. Option to apply
quantile or percent-max logic to redefine the maximum value. Option
to apply in log scale using jamba::log2signed()
.-log10(x)
which emphasizes P-values
near zero, and therefore values near 1 are not colorized.
Ideally, P-value columns are recognized by colname and/or by the numeric values.Columns can be sorted, by proxy of calling jamba::mixedSortDF()
to
enable mixed alphanumeric sorting.
Features intended but not enabled (yet):
optional word-wrapping column headers
n
lines,
expanding the number of lines used for affected rows.table()
, and not the mangled
tall-skinny format from as.data.frame(table(x))
table()
with more than two variables.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.