Skip to content

Release v1.3.1: modern theme refresh + network type#10

Merged
xuyiqing merged 10 commits into
masterfrom
dev
May 14, 2026
Merged

Release v1.3.1: modern theme refresh + network type#10
xuyiqing merged 10 commits into
masterfrom
dev

Conversation

@xuyiqing
Copy link
Copy Markdown
Owner

Summary

Promote v1.3.1 from dev to master. Cumulative changes since master last shipped (v1.2.x):

Already accepted on CRAN as 1.3.1. Master is being brought up to current; no new code lands here that isn't already in dev.

Test plan

  • R-CMD-check workflow passes on all 5 platforms (will fire on this PR)
  • After merge: tag `v1.3.1` on master, publish GitHub release

🤖 Generated with Claude Code

xuyiqing and others added 10 commits March 21, 2026 16:35
New feature: visualize panel data connectivity as a k-partite graph
(Correia 2016). Identifies singletons, connected components, and
non-unique observations via weighted edges. Supports 2+ FE dimensions,
formula-based missingness, and user-tunable edge/node styling.

New parameters: show.singletons, highlight.components, layout, node.size,
show.labels, edge.color, edge.alpha, edge.width, singleton.color.
igraph added to Suggests. Tutorial chapter 4 added. Version bumped to 1.3.0.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ve structure

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Document network visualization feature and historical changelog
for CRAN submission.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* v1.3.1: modern theme refresh, new theme/group.mean.overlay arguments

Visual refresh across all four plot types (treat / outcome / bivariate / network):

* Plain left-aligned titles at base size 11, white background for status
  heatmaps, subtle major-x gridlines for trajectories, thin gray dashed
  treatment-onset marker (replaces prior thick white separator).
* Multi-level discrete-status palette refreshed to a muted, perceptually
  distinct sequence; binary blue cascade and continuous gradient unchanged.
* Outcome control trajectories lightened to grey75 so dense overlapping
  lines no longer darken into a near-black band.
* Outcome draw order fixed: controls now render at the bottom, treated-pre
  next, treated-post on top -- via three explicit geom_line layers (single
  geom_line(group=id) was drawing in id order, not type order, so treated
  trajectories were being covered by the control band).
* by.group / by.group.side suptitle (textGrob path) routed through the
  modern title style via a new .pv_modern_top_grob helper (28 call sites).

New arguments:

* `theme = c("default", "red")`. The "red" theme activates a high-contrast
  publication-paper recipe: gray control / dark-gray treated-pre /
  brick-red treated-post for status and outcome plots, plus a solid black
  dashed treatment-onset marker.
* `group.mean.overlay = FALSE`. When TRUE, the outcome plot dims per-unit
  trajectories and overlays a heavy group-mean line plus a 10-90% quantile
  ribbon per treatment-status group. Currently scoped to the main DID
  continuous-outcome path.

Deprecations:

* `theme.bw = FALSE` is soft-deprecated -- still functional for backwards
  compatibility but emits a one-time warning per call. The tutorial no
  longer demonstrates it.

Tutorial:

* New "Themes" subsections in 01-treat and 02-outcome chapters; new red-
  theme demo in 03-bivariate chapter.
* Demo of theme="red" handling all three categories (Under Control,
  Under Treatment, Missing) on the capacity dataset.
* New v1.3.1 changelog entry; index version table + argument table
  updated for the two new arguments.

Validation: R CMD check --as-cran on the built tarball returns Status: OK
(0 errors / 0 warnings / 0 notes). 116/116 testthat tests pass. Clean-cache
Quarto book render of all 7 chapters succeeds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs: log v1.3.1 CRAN acceptance in tutorial book

Update install table to CRAN 1.3.1 across all three rows; add CRAN release
line (2026-05-13) to v1.3.1 changelog entry.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs: link StatsClaw in tutorial contributors

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Yiqing Xu <7664920+xuyiqing@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Saving the plot to a named object first makes the two-step pattern
explicit for readers; mirrors how users will typically reach for
ggplot2 layers in their own code.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5-platform matrix (macOS, Windows, Linux release / devel / oldrel-1)
using the r-lib/actions/check-r-package recipe with --as-cran flags.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Dev-side checks are run manually by the maintainer; CI gates only the
final mile into master.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drop ubuntu r-devel and r-oldrel-1; keep macOS, Windows, Ubuntu on R
release. Maintainer runs devel/oldrel checks manually when needed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@xuyiqing xuyiqing merged commit f8f4fc7 into master May 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant