Less Code with More Comprehensive Results
Overview
Each function replaces multiple standard R functions. For example, two function calls, Read() and CountAll(), generate summary statistics for all variables in the data frame, plus histograms and bar charts. Other functions provide data aggregation via pivot tables; comprehensive regression, ANOVA, and t-test; visualizations including integrated Violin/Box/Scatter plot for a numerical variable, bar chart, histogram, box plot, density curves, calibrated power curve; reading multiple data formats with the same call; variable labels; time series with aggregation and forecasting; color themes; and Trellis (facet) graphics. Also includes a confirmatory factor analysis of multiple-indicator measurement models, pedagogical routines for data simulation (e.g., Central Limit Theorem), generation and rendering of regression instructions for interpretative output, and both interactive construction of visualizations and interactive visualizations with plotly.
Updates
Chart(), X() and XY(): Parameter type renamed to form, which names the perceptual form of the visualization within the analytic view, such as form="bars" for Chart(). The old name type is still accepted, now with a message that announces the new name form.
Chart(), X() and XY(): The variable arguments x, y, by, and facet now accept expressions, such as Chart(cut(rnorm(50), 3)), X(log(Salary)), or XY(Years, Salary, by=cut(Pre, 2)). An expression evaluates first against the columns of the data frame, then against the user's workspace, with the expression text as the variable label. A vector of variable names such as c(Years, Salary) retains its column-selection meaning.
Chart(): Parameter facet now works for treemap, icicle charts, and bubble charts.
XY(): A multi-column data frame passed directly as x and y generates a scatterplot matrix, so the variable list can be stored once and reused: vec <- d[, c("Years","Pre","Post")] then XY(vec, vec, data=NULL).
XY(): Parameter 'facet' now works for all forms of relationship visualizations beyond only scatterplots.
XY(): With a vector of x (or y) variables, facet repeats the multi-series overlay across its panels, each panel the full overlay for one level of the facet variable, all panels on a common scale: XY(c(Pre, Post), Salary, facet=Gender). Parameter by does not apply with a vector of x or y variables, as the multiple series already occupy the color (series) dimension of the plot.
Regression() and Logit(): A term of the model formula may now be an expression of variables, such as reg(log(Salary) ~ Years + I(Years^2)), evaluated against the data frame with the expression text as the term label, so no need to first create the transformed variable with Transform().
ttest() and ANOVA(): Model terms may also be expressions, such as ttest(log(Salary) ~ Gender), ttest(log(Pre), log(Post)), or ANOVA(Salary ~ cut(Years, 3)), with the expression text as the label. An ANOVA() expression for a factor must produce categories, such as with cut() or factor(). Previously, ttest() with an expression response in a formula silently analyzed the untransformed variable.
Correlation(): The variables may also be expressions, such as Correlation(log(Years), Salary), with the expression text as the label. An expression that yields a data frame, such as Correlation(d[, 1:4]), specifies a correlation matrix.
Model(): Expanded to call more possibilities for analysis of a model.
Bug Fixes
Show all changes in 4.5.6Hide the rest of the changes in 4.5.6
Chart(): When displaying counts with labels="input", the inner ring counts now displayed correctly.
Chart(): The Plotly 100% stacked bar chart is now computed correctly.
Regression(): With one numeric and one categorical predictor, the Type II ANOVA table mislabeled the factor's adjusted sum of squares with the covariate's name, and listed the remaining rows per indicator variable with unadjusted (sequential) sums of squares. The table now correctly reports one Type II row per term: the covariate and the factor, each adjusted for the other.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
- Help pages
- 87
- Examples that run
- 92%71 run in a plain check · 6 hold no code
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 51%
- Help pages citing references
- 33%
- intro HTML
Downloads
Dependencies
Installing lessR adds 91 packages (54 with compiled code, 82 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Show 4 peopleHide 4 people
Pick two releases to compare their code metrics.
- 4.5.6Latest
- 4.5.5
- 4.5.42026-04-27 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 4.5.32026-03-26 · diff ↗
- 4.5.22026-03-05 · diff ↗
- 4.5.12026-01-22 · diff ↗
- 4.52025-12-11 · diff ↗ ·
removed 2 exports
bc, setadded 6 exports
Chart, Density, Flows, savePlotly, X, XY - 4.4.5
- 4.4.4
- 4.4.3
- RR 4.5.0 released · 2025-04-11
- 4.4.22025-03-16 · diff ↗
- 4.4.12025-02-03 · diff ↗
- 4.4.0
- 4.3.92024-12-08 · diff ↗
Show 138 earlier eventsHide 138 earlier events
- 4.3.8
- 4.3.72024-08-22 · diff ↗
- 4.3.62024-06-23 · diff ↗
- 4.3.32024-05-09 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 4.3.22024-04-08 · diff ↗
- 4.3.12024-03-27 · diff ↗
- 4.3.02023-11-12 · diff ↗
- 4.2.92023-05-14 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 4.2.82023-03-22 · diff ↗
- 4.2.6
- 4.2.52023-01-06 · diff ↗
- 4.2.42022-12-07 · diff ↗
- 4.2.3
- 4.2.22022-07-13 · diff ↗
- 4.2.02022-06-03 · diff ↗
- 4.1.9
- 4.1.8
- RR 4.2.0 released · 2022-04-22
- 4.1.7
- 4.1.62022-02-18 · diff ↗
- 4.1.5
- 4.1.42021-12-14 · diff ↗
- 4.0.82021-11-18 · diff ↗
- 4.0.6
- 4.0.52021-10-05 · diff ↗
- 4.0.32021-09-09 · diff ↗
- 4.0.22021-08-05 · diff ↗
- 4.0.12021-06-06 · diff ↗ ·
removed 5 exports
Recode, rec, Rescale, srt, subsadded 6 exports
cp, kurtosis, Prop_test, recode, rescale, skew - RR 4.1.0 released · 2021-05-18
- 3.9.92021-01-10 · diff ↗
- 3.9.8
- 3.9.7
- 3.9.62020-06-11 · diff ↗
- 3.9.5
- 3.9.4
- RR 4.0.0 released · 2020-04-24
- 3.9.3
- 3.9.22020-02-11 · diff ↗
- 3.9.02019-12-07 · diff ↗
- 3.8.92019-08-25 · diff ↗
- 3.8.8
- 3.8.6
- 3.8.52019-05-16 · diff ↗
- 3.8.42019-04-26 · diff ↗ ·
removed 3 exports
model.brief, wrt.r, wrt.xadded 11 exports
av_brief, cr_brief, model_brief, prob_norm, prob_znorm, prob_tcut, reg_brief, ss_brief, tt_brief, wrt_r, wrt_x - RR 3.6.0 released · 2019-04-26
- 3.8.2
- 3.8.12019-01-10 · diff ↗
- 3.8.0
- 3.7.9
- 3.7.6
- 3.7.52018-06-03 · diff ↗
- 3.7.42018-05-25 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 3.7.2
- 3.7.0
- 3.6.72017-12-10 · diff ↗
- 3.6.6
- 3.6.52017-08-06 · diff ↗
- 3.6.2
- RR 3.4.0 released · 2017-04-21
- 3.6.0
- 3.5.52017-02-09 · diff ↗
- 3.5.32017-01-02 · diff ↗
- 3.5.12016-10-20 · diff ↗
- 3.5.02016-08-29 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 3.4.82016-05-02 · diff ↗
- 3.4.6
- 3.4.4
- 3.4
- 3.3.62015-11-05 · diff ↗
- 3.3.42015-08-22 · diff ↗
- 3.3.32015-07-24 · diff ↗ ·
removed 4 exports
tAnd, tNum, tP, tRowadded 7 exports
rd.cor, xAnd, xNum, xP, xRow, xU, xW - 3.3.1
- RR 3.2.0 released · 2015-04-16
- 3.32015-03-19 · diff ↗ ·
removed 1 export
reg.explainadded 3 exports
print.out_all, print.out_piece, regPlot - 3.22015-02-25 · diff ↗
- 3.1.12014-09-23 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 3.12014-02-25 · diff ↗
- 3.0.32014-02-24 · diff ↗
- 3.0.22013-08-25 · diff ↗
- 3.0.1
- RR 3.0.0 released · 2013-04-03
- 3.0.02013-03-09 · diff ↗ ·
removed 5 exports
hst, rd2, rad, rad2, rad.briefadded 3 exports
details, Nest, Read2 - 3.02014-01-02 · diff ↗
- 2.15.32013-01-03 · diff ↗ ·
removed 6 exports
hlp, lgt, rad.labels, rad.both, locate, smd.t.testadded 6 exports
hl, lr, Merge, mrg, rd, rd2 - 2.15.2
- 2.15.12012-06-10 · diff ↗ ·
removed 1 export
pattern:.added 66 exports
ANOVA, av, av.brief, BarChart, bc, color.barchart, BoxPlot, bx, color.boxplot, Correlation, cr, cr.brief, CountAll, ca, Density, den, color.density, Help, hlp, Histogram, hst, color.hist, label, Model, model, model.brief, PieChart, pc, Plot, plt and 36 more - RR 2.15.0 released · 2012-03-30
- 2.15.02012-03-28 · diff ↗
- 2.14.22012-02-10 · diff ↗
- 2.14.1
- RR 2.14.0 released · 2011-10-31
- 2.14.02011-10-08 · diff ↗
- 2.13.22011-07-17 · diff ↗
- 2.13.12011-06-29 · diff ↗
- RR 2.13.0 released · 2011-04-13
- 2.13.02011-04-11 · diff ↗
- 2.12.22010-12-24 · diff ↗
- 2.12.12010-11-18 · diff ↗
- 2.9.7
- 2.9.42013-08-26 · diff ↗
- 2.9.32013-05-19 · diff ↗
- 2.9.22013-05-08 · diff ↗
- 2.92013-03-15 · diff ↗
- 2.82013-01-04 · diff ↗
- 2.62012-10-25 · diff ↗
- 2.52012-08-10 · diff ↗ ·
removed 3 exports
corListVars, listvars, pltadded 12 exports
Logit, lgt, ScatterPlot, sp, DotPlot, dp, Sort, srt, Subset, subs, Transform, trans - 2.4.22012-07-22 · diff ↗
- 2.4.12012-07-20 · diff ↗ ·
removed 11 exports
color.barchart, color.boxplot, color.density, color.hist, RunChart, rc, sim.CImean, sim.CLT, sim.flips, sim.means, .Firstadded 24 exports
corCFA, cfa, corListVars, listvars, corReorder, reord, corReflect, reflect, corProp, prop, corRead, rad.cor, corScree, scree, corEFA, efa, LineChart, lc, Recode, rec, simCImean, simCLT, simFlips, simMeans - 2.3.12012-06-13 · diff ↗
- 2.32012-06-11 · diff ↗
- 2.22012-03-28 · diff ↗
- 2.1.12012-02-12 · diff ↗
- 2.12012-02-08 · diff ↗
- 2.0.22011-11-15 · diff ↗
- 2.0.12011-10-09 · diff ↗
- 2.02011-07-23 · diff ↗
- 1.9.82011-06-30 · diff ↗
- 1.9.72011-06-15 · diff ↗
- 1.9.62011-06-07 · diff ↗
- 1.9.02011-05-23 · diff ↗
- 1.8.92011-05-16 · diff ↗
- 1.8.82011-05-09 · diff ↗
- 1.8.72011-04-24 · diff ↗
- 1.8.62011-04-12 · diff ↗
- 1.8.52011-04-06 · diff ↗
- 1.8.32011-03-17 · diff ↗
- 1.8.22011-03-16 · diff ↗
- 1.82011-01-03 · diff ↗
- 1.72010-11-19 · diff ↗
- 1.62010-11-10 · diff ↗
- 1.5.22010-11-03 · diff ↗
- 1.52010-10-25
- RR 2.12.0 released · 2010-10-15
Package metadata
- First published
- 2010-10-25
- Total releases
- 136 / 16 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.6.0
- Bundled data
- 38 KB / 17 files
- Download size
- 1.7 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("lessR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/cran.package.lessr, 10.1080/26939169.2021.1999871.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.