NEWS
miaViz 1.21
NEW FEATURES
- plotHeatmap: heatmap of features by samples straight from a TreeSE, as a
ggplot2 object, with row and column facets from rowData/colData and an
optional row tree
- plotDissimilarity: heatmap of a dissimilarity matrix between samples
- getHeatmapOrder and sort.method (in plotHeatmap and plotDissimilarity):
sort the rows and columns of heatmaps
- plotOrdination for ordinations stored in reducedDims
- Joint-RPCA visualisations: plotJointRPCA, plotJointRPCACovariance,
plotJointRPCAExplainedVariance and plotJointRPCANetwork
- plotRowTree, plotColTree: heatmap.by shows per-taxon values as a heatmap
or as rings next to the tree tips
- plotSeries: each feature is drawn as its own line, as in matplot(), also
without colour.by
- plotBoxplot: outlier.size, outlier.colour, outlier.alpha and outlier.shape
style the boxplot outliers (shown with add.points = FALSE). The help page
now lists all customisation arguments, grouped by plot layer
- New example datasets in multimedia_data_demo: se_relative, tse_relative and
tse_pathway
SIGNIFICANT USER-VISIBLE CHANGES
- plotRDA, plotCCA: the vectors are scaled by a common factor so that the
longest one reaches 75% of the extent of the samples (as in vegan
biplots), instead of crowding at the origin. Their relative lengths and
directions are unchanged; vec.scale = FALSE draws them at the original
length, and a number sets the multiplier
- Colour-blind-friendly colours by default: discrete variables are coloured
with the Okabe-Ito palette for up to 9 groups (black is used only for the
9th), with the Paired palette for 10 to 12 groups and with viridis for
more, instead of the Tableau palette
- plotOrdination and the functions built on it (e.g. plotJointRPCA) draw
points with point.alpha = 0.7 instead of 0.4, so that light colours stay
visible
- A palette set with options(ggplot2.discrete.colour = ...) or
options(ggplot2.discrete.fill = ...) is used in all plots, so one palette
can be chosen for every figure, e.g. the earlier Tableau palette
(see ?"mia-plot-args")
- More readable default labels:
- plotHeatmap and plotJointRPCACovariance draw column labels vertically
- plotOrdination titles the axes by the method and component, e.g.
"MDS1 (23.4%)" instead of "MDS_bray1"
- plotLoadings shows the components in their order (PC2 before PC10),
names unnamed components "Component 1", ..., titles the value axis
"Loading" and leaves out the sign legend when all loadings have the
same sign
- Prevalence plots title their axes "Detection threshold (assay)",
"Number of features" and "Mean relative abundance"
- plotBoxplot facets (facet.by = "rownames") follow the order of
'features', and plotMediation forest panels the order of the components
- plotJointRPCANetwork keeps labels off the nodes
- plotMediation heatmap: each tile shows the effect estimate with its
significance, the colours use the colour-blind-safe red-blue palette and
the panel is grey, so that small ACME effects stay visible on the shared
colour scale. add.estimate = FALSE shows only the significance, and
add.significance = "numeric" shows "p=0.012" or "p<0.001"
- plotForest: confidence intervals from 'err.var' use the degrees of freedom
given with the new 'df.var' or 'df' arguments; without them, the normal
distribution is used with a warning. Earlier, the number of columns of the
results table was used as the degrees of freedom
DEPRECATED AND DEFUNCT
- plotPrevalence, plotRowPrevalence, plotPrevalentAbundance: as.relative and
as_relative are deprecated. Calculate relative abundances with
transformAssay(x, method = "relabundance") and use
assay.type = "relabundance" instead
- getNeatOrder is deprecated; use getHeatmapOrder
- plotTaxaPrevalence and plotFeaturePrevalence are removed (deprecated since
2025); use plotRowPrevalence
- plotBoxplot: the misspelled argument add.chance is renamed to add.change
BUG FIXES
- Legend titles of coloured or filled variables (colour.by, fill.by, ...)
can be changed with labs(), e.g. + labs(colour = "Sample type"); the
title was set as the scale name, which labs() cannot override
- plotOrdination: the explained variance shown in the axis titles is the
percentage of the total variance for ordinations that store eigenvalues
(e.g. MDS); earlier the eigenvalues were multiplied by 100
- plotOrdination: aspect.ratio = "eigen" now scales the panel by the explained
variance (it had no effect); the documentation named a non-existent
panel.by.eigen argument
- plotBoxplot: significance brackets no longer run through boxes or each
other, and hide.ns = TRUE stacks the shown brackets without gaps
- plotBoxplot: paired lines follow the time order with more than two time
points
- plotBoxplot: variables named "x", "y" or "df" work
- plotRowPrevalence: count thresholds are no longer multiplied by 100
- plotHeatmap, plotDissimilarity: labs(fill = ...) sets the legend title
- plotHeatmap: facetting rows and columns by variables with the same name
works
- plotRDA, plotCCA: samples left out of the ordination (e.g. with
na.action = na.exclude) no longer add an empty "NA" legend entry
- plotAbundance: rows named in the new other.name argument (default
"Other", e.g. the group from subsetBy(collapse = TRUE)) are shown last in
the bars and legend instead of among the features; other.name = NULL
turns this off
- plotAbundance: a row named "Other" (e.g. from subsetBy(collapse = TRUE))
is shown last in the bars and legend instead of among the features
- plotForest: labels use two decimals for the CI ("-0.45 (-1.59, 0.70)")
and show p-values below 0.001 as "<0.001" instead of "0"
- plotRowGraph, plotPrevalentAbundance: points are coloured correctly when
both colour.by and shape.by are given
MINOR NOTES
- plotBoxplot: the error message for a wrong p.adjust.method asks for a
method name (it said 'must be TRUE or FALSE')
- Vignette: overview of all functions grouped by use case, and new examples
of heatmaps, ordination, group comparisons and forest plots
- Requires mia (>= 1.21.31), whose subsetBy() is used in examples and tests
- plotBoxplot: variable names that clash with internal columns
(e.g. "x_point") give an error instead of being silently overwritten
- plotBoxplot: step.increase is applied once (it was applied twice) and is
measured from the highest group a bracket spans; other arguments are
passed to ggpubr::stat_pvalue_manual
- plotSeries: legends keyed by rownames follow the order of rownames(x), and
colour.lab also titles the line type and size legends when they use the
same variable
- plotOrdination, plotBoxplot: size.by titles the size legend
- plotPrevalence, plotRowPrevalence: until removed, as.relative works as
documented (earlier only as_relative did)
- The pkgdown reference page groups the functions into categories
miaViz 1.19
- plotRDA: Now plotting works with interaction term (2025-11-09)
- plotBoxplot: Added option to add p-values (2026-01-07)
miaViz 1.17
- Improve *Histogram and *Barplot by adding options for filling and facetting (2025-04-24)
- Added plotBoxplot function (2025-04-27)
- plotSeries: Improve by adding functionality for sample groups (2025-04-28)
miaViz 1.15
- plotAbundance: Improved visualization of sample metadata
- plotScree: Method for creating scree plots
- plotRDA: Now it is possible to add only specified vectors
- plotMediation: Method to visualise results of mediation analysis
- plotRDA: Fix error that occurred when variable names were similar
- Added plotHistogram
- Added plotBarplot
miaViz 1.13
- plot*Tree: bugfix, ununique nodes
- Added confidence.level parameter to plotCCA
- add plotNMDS to miaViz (plotNMDS deprecated in mia)
- Added getNeatOrder function
- plotAbundance: enable plotting without agglomeration
- Change parameter naming convention from parameter_name to parameter.name
- Added plotLoadings function
miaViz 1.11
- replace addTaxonomyTree with addHierarchyTree after renaming in mia package
miaViz 1.9
- Updated plotDMN to work with newest mia version
- Added plotCCA and plotRDA functions
miaViz 1.7.2 (2022-02-17)
- assay_name argument changed to assay.type
miaViz 1.7
- Fixed plotGraph* that was broked due changes in dependencies
miaViz 1.5
- plot*Tree & *TreeData: Add support for multiple trees
- plot*Tree layout bugfix
miaViz 1.3
- Bugfix for plotting functions to support sparseMatrix and other assay types (2021-12-31)
- Replaced abund_values with assay_name
miaViz 1.1
- Added plotAbundanceDensity (2021-06-23)
miaViz 0.99.0 (2021-03-19)
- Submitted to Bioconductor