Changelog
Source:NEWS.md
snakeplot 0.4.0
Changes
- The correlation arcs of
survey_snake(arc_fill = "correlation")are now computed from respondent-level rows: Pearson r between adjacent items across the respondents who answered both (pairwise-complete),NAwhen fewer than three did or either item is constant among them. Previously they were computed from the response counts. -
arc_fill = "correlation"now requires raw responses (one row per respondent, one column per item). Counts input and thevar/day(ESM) mode, which do not identify respondents, raise an error of classsnakeplot_no_respondent_data. - The returned
snake_layoutholdscorrelations, a data frame with one row per U-turn (from,to,r,n), so the printed values can be checked and reported. - The legend entry for the arcs reads “Item r (arc)” and uses
arc_color. - Dates of date-times are taken in the time zone of the data.
as.Date()converted through UTC, so in time zones east of UTCtimeline_snake()labelled each phase one month early (a phase starting 2016-10 as “Sep 2016”), and thetimestampmode ofsurvey_snake()measured the time of day of a prompt answered shortly after midnight from the previous midnight, placing its tick beyond the end of the band. -
survey_snake()restores the session’s random number state on exit. It still seeds its tick jitter withseed(default 42), so plots are unchanged, but it no longer resets the caller’s random number stream.
snakeplot 0.3.0
CRAN release: 2026-03-16
- New
flowparameter on all snake functions:"snake"(boustrophedon, default for most functions) or"natural"(all rows read left-to-right, default fortimeline_snake()andsequence_snake()). - New
multi_snake()function for faceted multi-construct panels. - New
sequence_snake()function for categorical sequence visualization. - New
timeline_snake()function for state-transition timelines. - Added Sonsoles Lopez-Pernas as package author.
- Bug fixes: survey_sequence arc gradient, survey_snake first end cap, multi_snake end cap polygon arguments, activity_snake arc labels.
snakeplot 0.2.0
- 10 built-in color palettes via
snake_palettesandsnake_palette(): 5 diverging (classic, earth, ocean, sunset, berry) and 5 sequential (blues, greens, grays, warm, viridis). - New
band_paletteparameter for custom band shading colors. - New
bar_reverseparameter to draw bars from highest level first. -
ema_beepsexpanded from 500 sampled rows to full 11 474 beeps. - Tick width capped for sparse daily data to prevent overly thick ticks.
- Dot size increased (cex 0.5 → 0.9) for better visibility.
- Vignette and README rewritten with
snake_palettes$oceanexamples. - 100% test coverage (292 tests).
snakeplot 0.1.0
- Initial release.
-
survey_snake(): Survey response snake plots with distribution bars, tick marks, inter-item correlation arcs, faceting, and daily EMA support. -
activity_snake(): Daily activity timeline with event blocks and rug ticks. -
survey_sequence(): Stacked 100% horizontal bar plots in serpentine layout. -
sequential_dist(): Sequential palette variant ofsurvey_sequence(). -
line_snake(): Continuous intensity line plot (experimental). -
facet_snake(): Generic multi-panel faceting wrapper. - Three bundled datasets:
ema_emotions,student_survey,ema_beeps.