Skip to contents

plotomics (development version)

Changes

  • Chart text takes its size from theme$fontSize. At the default of 12, labels are 11 px, axis and legend titles 13 px and plot titles 14 px; text was fixed at 7 to 13 px, mostly 9 px. Layouts measure their labels, end long ones with an ellipsis, and thin or shrink dense ones, so text stays inside the widget.
  • Past 8 categories the default palette changes from Okabe-Ito to scanpy’s 20-colour cluster palette, so the 9th group no longer takes the colour of the 1st. km(), lollipop(), oncoplot(), bioprofile() and violin() now take their colours from theme$categorical.
  • Each plot has its own default height, the one its *Output() function uses: clustermap(), dotplot(), oncoplot(), spatial() and violin() 560 px, km() and upset() 520, lollipop() 440, bioprofile() 380 and the others 480. clustermap() and clustermapOutput() rise to 560 px, and the clustermap colour bar moves to the right of the heatmap.
  • clustermap(linkage = "ward") is ward.D2 (Ward’s method on squared distances); it was ward.D, so Ward dendrograms change. It warns when Ward is used with the correlation metric.
  • oncoplot() matches annotation values to samples by name. Unnamed values are read in the order of samples, and stop with an error when samples is not given. Genes rank by the number of samples altered, and a gene and sample altered in two or more ways show one “Multi-hit” cell, as maftools does.

Bug fixes

  • NA, NaN and Inf reach the browser as null, and every plot now shows them as missing (a grey cell, an open ring, an “NA” legend key, or no mark) where they were drawn as 0, took the low end of a colour scale, or blanked the widget.
  • One-element vectors reach the browser as arrays, so a one-row data frame or a single class no longer breaks oncoplot(), volcano(), lollipop(), bioheatmap(), hic(), upset() and network(). An argument left out on a re-render goes back to its default.
  • hic() draws its map in every browser; it was blank.
  • volcano(): a p-value of 0 is drawn at the top of the plot, rows with a missing coordinate are left out, and labels no longer overlap.
  • network(): negative weights no longer stop the layout, and edge widths scale to 1.7 to 6 px.
  • treemap() draws without a value column, sums leaves only, and names its groups.
  • km(): strata whose rows are interleaved, the risk-table order with groups, the confidence band below the axis, and curves that stop before their last censored subject.
  • The oncoplot() and lollipop() legends wrap, and lollipop() variants at one residue stack on one stem, with labels kept clear of the heads.
  • dotplot() and violin() handle missing values, and each violin row has a value axis (show_value_axis).
  • bioheatmap() draws matrices larger than the GPU texture limit and thins crowded labels.
  • clustermap() clusters around missing cells and clusters again only when the data or a clustering argument changes.
  • embedding() and spatial(): the colour type, the category order (“cluster 2” before “cluster 10”) and lasso selections across re-renders.
  • The bioprofile(), upset() and lollipop() axes put ticks on round values with exact labels, and long upset() set names fit their column.

plotomics 0.1.0

CRAN release: 2026-09-04

First release.

Fifteen GPU- and canvas-accelerated visualization widgets, built on a shared JavaScript core and exposed to R through htmlwidgets. Every widget renders in the RStudio Viewer, R Markdown, Quarto and Shiny, and every one ships a matching *Output() / render*() pair for classic Shiny apps.

Expression and abundance

Single-cell and spatial

  • embedding() – UMAP, t-SNE and PCA scatter at several hundred thousand points. A factor color column pins the legend order and keeps unused levels, the way drop = FALSE does in ggplot2.
  • spatial() – measurements at their slide coordinates over the histology image, with image and spots sharing one fit so they cannot drift apart on resize.

Cohort and variant genomics

  • oncoplot() – the cohort alteration landscape, with mutation-burden and per-gene frequency barplots and clinical annotation strips. oncoplot_memo_sort() produces the conventional column order.
  • lollipop() – variants along a protein over its domain architecture.
  • km() – Kaplan-Meier curves with censoring ticks, confidence bands and a number-at-risk table. Accepts a survival::survfit object directly.
  • bioprofile() – grouped categorical profile, built for the 96-context mutational signature layout.

Sets, hierarchies and networks

  • upset() – set intersections for the many-set case. upset_intersections() computes exclusive intersections, so columns sum to the union rather than double-counting.
  • treemap() – hierarchical gene-set and pathway composition.
  • network() – large biological networks, with directed edges, per-edge colour and node-click selection that pushes the clicked id to input$<outputId>_selected in Shiny.

Genome and chromatin

  • hic() – Hi-C contact matrices with level-of-detail tiling.