lpanda 0.2.0 (2025-11-28)
Changes
- Renamed sample datasets used for testing:
-
sample_different_varnames(formerlysample_diff_varnames). -
sample_no_switching(formerlysample_no_crossing).
-
New features
-
plot_continuity()gains a new argumentshow_candidate_networks. It adds an additional bottom panel visualising candidate network snapshots for each selected election. The snapshots highlight candidates running in the focal election, show earlier candidates as smaller background nodes, and reflect group affiliations (e.g., parties or cores) through node colours and candidate lists through node boundaries.
New data
- Added municipalities:
Bublava_SO_czCernosice_PZ_czDasnice_SO_czHoromerice_PZ_czHradce_CB_czKamenna_CB_czNebanice_CH_czPotucky_KV_czPrameny_CH_czRoztoky_PZ_cz
- New sample dataset for testing:
-
sample_no_pluralism- variant ofsample_datawith only one candidate list per election.
-
Improvements
-
plot_continuity()no longer requires grouping information (e.g., parties) when marking a specific candidate viamark = c("candidate", "<name>"). The function now highlights the candidate and their lists even in ungrouped datasets, avoiding unnecessary community detection.
Bug fixes
- Fixed crashes and encoding issues on non-UTF-8 systems caused by data containing diacritics.
- Added automatic ASCII fallback for non-UTF-8 systems and locales.
-
plot_continuity()now detects the UTF-8 capability of the current graphics device. It automatically switches to ASCII mode when running in non-interactive or CI environments, or when the device cannot render UTF-8. - Added global options:
-
lpanda.text_encoding—"auto"(default) |"utf8"|"ascii" -
lpanda.plot_family— default"sans" -
lpanda.force_ascii— defaultFALSE
-
- Text encoding can also be specified as a
text_encodingargument via...in plotting functions.
-
plot_continuity()now properly resets layout to prevent occasional overlapping plots.
Documentation
-
help("lpanda")/?lpandanow provide basic package information, including an overview of the basic workflow, main functions, datasets, and references. - Added pkgdown website: https://localpolitics.github.io/lpanda/.
- Updated documentation for municipalities and sample datasets.
lpanda 0.1.1 (2025-08-26)
CRAN release: 2025-09-01
Bug fixes
-
plot_continuity()now always restores graphical parameters (even if an error occurs).
lpanda 0.1.0 (2025-08-18)
- Initial CRAN submission.
New features
-
prepare_network_data()- creates network edgelists and node attributes for candidates, lists, continuity, parties, cores and elections. -
plot_continuity()- visualizes the continuity of candidate lists across elections as a time-based diagram using igraph package.
