The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
var.rdf() now returns a structured list of class
'var.rdf' instead of a plain character
data.frame. The three fields are: $display
(character data.frame with '*',
'', and '-' entries, for tabular display),
$numeric (numeric matrix of absolute percentage
differences), and $flagged (logical matrix,
TRUE where the discrepancy exceeds limit).
Code that accessed bp$var.rd as a data.frame
directly must be updated to use bp$var.rd$display.summary.bpca() no longer accepts the
presentation argument. The printing behaviour previously
triggered by presentation = TRUE is now handled by the new
print.summary.bpca() S3 method; calling
print(summary(bp)) produces the same output.print.var.rdf(): printing a var.rdf object
(e.g. print(bp$var.rd)) automatically displays the
character table ($display).print.summary.bpca(): separates computation from
presentation following R’s S3 convention. summary.bpca()
now only computes and returns the summary object;
print.summary.bpca() handles console output.R/bpca-utils.R introduces four shared internal
helpers that eliminate duplicated code across the package:
.center_scale(x, center, scale): centering and scaling
logic previously duplicated between bpca.default() and
dt.tools()..cosine_matrix(m): pairwise cosine similarity between
rows of a matrix, previously duplicated between var.rbf()
and dt.tools()..compute_var_factor(coobj, covar): automatic
variable-scaling factor for biplots, previously duplicated between
plot.bpca.2d() and plot.bpca.3d()..pc_axis_labels(eigenvalues, dims): axis labels in
"PC1 (38.5%)" format, previously duplicated between
plot.bpca.2d() and plot.bpca.3d().plot.bpca.2d() decomposed from a single 634-line
function into three files:
R/plot.bpca.2d.helpers.R: eight internal drawing
functions (.draw_obj(), .draw_var(),
.draw_var_seg(), .draw_circles(),
.draw_axis_cross(), .proj_on_direction(),
.solve_orthogonal_intersection(),
.draw_circles_at()), extracted from closures that were
recreated on every call.R/plot.bpca.2d.types.R: ten internal type functions
(.plot_type_bp() through .plot_type_rv()), one
per switch branch, each independently readable and
testable.R/plot.bpca.2d.R: reduced to ~160 lines — validation,
state preparation, context list (ctx) construction, and
dispatch via switch().pc.names in bpca.default() is now
generated once and reused for svdx.scal$v,
g.scal, and hl.scal column names (previously
generated twice).while loop in
plot.bpca.2d(type = 'ww') — which relied on an
NA sentinel at the end of chull() output — was
replaced by a for loop with circular indexing over all
convex-hull edges, including the closing edge.hj, sqrt,
jk, gh); all four centering modes
(center = 0:3); all four internal helpers
(.center_scale, .cosine_matrix,
.compute_var_factor, .pc_axis_labels);
var.rbf and var.rdf (including the new list
structure); dt.tools; qbpca;
summary.bpca and print.summary.bpca; all ten
2D plot types; 3D static plot; plot.qbpca; and
bpca.prcomp.bpca.default,
bpca.prcomp, dt.tools, qbpca,
var.rbf, var.rdf).plot.bpca.2d,
plot.bpca.3d, plot.qbpca) to reduce
duplication and improve readability while preserving public API.summary.bpca, xtable.bpca,
print.xtable.bpca) and fixed minor string-handling
issues.print.xtable.bpca for
type = "html" while keeping LaTeX behavior unchanged.demo/ (2D/3D,
static/dynamic, and utilities) to align examples with the refactored
plotting code.man/plot.Rd and man/qbpca.Rd to
reflect the latest plotting behavior and usage.vignettes/bpca-overview.Rmd and added
vignettes/latex-bpca.Rnw to support the updated guidance
and examples.print(x, type = "html") in
man/print.xtable.Rd, the HTML overview vignette section,
and README.md (use print() for S3 dispatch;
results = 'asis' in R Markdown for HTML tables).qbpca plotting workflow to improve internal
organization and keep graphical outputs consistent.print.xtable.bpca now supports
type = "html" (via
print(x, type = "html", ...)) for HTML table output,
including column labels with eigenvalues; LaTeX layout is unchanged for
the default type = "latex".man/*.Rd.DESCRIPTION,
NAMESPACE, INDEX) for consistency with the
current repository and dependency layout.NEWS file to NEWS.md
for improved rendering on GitHub and pkgdown.vignettes/latex-bpca.Rnw for clearer
didactic flow, improved visual layout, and updated examples.vignettes/latex-bpca.pdf with the new vignette
formatting.vignettes/bpca-overview.Rmd to use
print(tbl, type = "html") directly.vignettes/bpca-overview.html with the
updated HTML table rendering.inst/doc/ to
keep the repository clean.testthat suite under
tests/testthat/ covering core bpca workflows,
summary/plot smoke checks, and xtable output behavior for
HTML and LaTeX.Suggests: testthat (>= 3.0.0) and
Config/testthat/edition: 3 in
DESCRIPTION).var.pos in 2D and 3D
plots, enabling precise manual label placement to reduce overlap.plot.bpca.2d (type = "eo") by rewriting
projection logic to properly account for scaling.plot.bpca.3d rendering performance when using
rgl.plot.bpca.3d that prevented variable
vectors from using distinct colors.plot.bpca.2d and
plot.bpca.3d, reducing the need for manual adjustments with
var.factor, xlim, ylim, and
zlim.xtable.bpca.print.xtable.bpca; updated related
commands and aux_com1 handling so
sanitize.rownames.function works properly.xtable.bpca and
print.xtable.bpca.latex.bpca,
print.latex.bpca, and summary.latex.bpca;
corresponding .Rd files were removed.NAMESPACE and DESCRIPTION
accordingly.latex.bpca: changed footenotes
default from "" to NULL.stats, graphics, and
grDevices imports in NAMESPACE to align with
CRAN requirements.latex.bpca).marina.rda.require calls for packages already
attached via Depends (rgl and
scatterplot3d).var.position from the package; when needed,
users can swap variable/object positions with
bpca(t(dad)).plot.bpca.3d.summary.summary method.summary and plot
methods in documentation.plot.bpca.3d
(matrix(0, nc = 3) partial argument match of
nc to ncol).plot.bpca.2d and plot.bpca.3d to
show, by default, the retained variation for each principal component on
axis labels.summary method.plot.bpca.2d and plot.bpca.3d to
accept xlim, ylim, zlim,
xlab, ylab, and zlab.obj.identify = TRUE.These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.