Skip to content

Latest commit

 

History

History
70 lines (60 loc) · 3.53 KB

NEWS.md

File metadata and controls

70 lines (60 loc) · 3.53 KB

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), NA when 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 the var/day (ESM) mode, which do not identify respondents, raise an error of class snakeplot_no_respondent_data.
  • The returned snake_layout holds correlations, 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 UTC timeline_snake() labelled each phase one month early (a phase starting 2016-10 as "Sep 2016"), and the timestamp mode of survey_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 with seed (default 42), so plots are unchanged, but it no longer resets the caller's random number stream.

Documentation

  • New vignettes "Serpentine plots" and "Survey and experience sampling responses"; guides on sequences and timelines, daily activity, and palettes and layout; case studies on the bundled experience sampling data.

snakeplot 0.3.0

  • New flow parameter on all snake functions: "snake" (boustrophedon, default for most functions) or "natural" (all rows read left-to-right, default for timeline_snake() and sequence_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_palettes and snake_palette(): 5 diverging (classic, earth, ocean, sunset, berry) and 5 sequential (blues, greens, grays, warm, viridis).
  • New band_palette parameter for custom band shading colors.
  • New bar_reverse parameter to draw bars from highest level first.
  • ema_beeps expanded 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$ocean examples.
  • 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 of survey_sequence().
  • line_snake(): Continuous intensity line plot (experimental).
  • facet_snake(): Generic multi-panel faceting wrapper.
  • Three bundled datasets: ema_emotions, student_survey, ema_beeps.