Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ because namespace references inside `ergm` model objects don't survive a plain `
`Imports` `ggplot2` (>= 4.0.0), `ggraph`, `graphlayouts`, `igraph`, `dplyr`, and `patchwork`.
`ergm` and `RSiena` are listed under `Enhances` (their `plot.*` methods are only invoked if those
packages are installed and such results are passed in), and `gganimate`, `gifski`, `ggforce`,
`migraph`, and `netrics` are `Suggests`-only,
`messydates`, `migraph`, and `netrics` are `Suggests`-only,
so code paths depending on them should guard with `requireNamespace()`
(see the `thisRequires()` helper in [R/autograph_utilities.R](../R/autograph_utilities.R))
or be skipped gracefully when unavailable.
Expand All @@ -402,6 +402,14 @@ because `R CMD check` resolves a `::` call against the installed package
and reports the newer name as missing even where the call is never reached.
Delete each shim once the minimum is raised past the version that added the function.

`messydates` is suggested rather than imported because the dependency runs the
other way: `messydates` holds no `ggplot2` code of its own, so the `mdate`
scales in [R/scale_mdate.R](../R/scale_mdate.R) live here, where `ggplot2` is
already imported.
`.onLoad()` registers `scale_type.mdate()` with `ggplot2`, which names a scale
and so needs no `messydates`; `scale_x_mdate()` and `scale_y_mdate()` reach
`messydates` only once a plot draws a date, and guard with `thisRequires()`.

### Tests

`tests/testthat/` uses testthat edition 3 with parallel execution
Expand Down
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: autograph
Title: Automatic Plotting and Theming of Many Graphs
Version: 1.2.2
Version: 1.2.3
Description: Visual exploration and presentation of networks should not be difficult.
This package includes functions for plotting networks and network-related metrics with sensible and pretty defaults.
It includes 'ggplot2'-based plot methods for many popular network package classes.
Expand All @@ -13,7 +13,7 @@ Encoding: UTF-8
LazyData: true
Depends:
R (>= 4.1.0),
manynet (>= 2.2.3)
manynet (>= 2.3.1)
Imports:
dplyr (>= 1.1.0),
ggraph (>= 2.2.0),
Expand All @@ -25,6 +25,7 @@ Suggests:
gganimate,
ggforce (>= 0.5.0),
gifski,
messydates (>= 1.0.0),
methods,
migraph,
netrics (>= 0.4.0),
Expand Down
8 changes: 8 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ S3method(plot,selectionTable)
S3method(plot,sienaGOF)
S3method(plot,tie_measure)
S3method(plot,traces.monan)
S3method(print,check_drawing)
S3method(print,check_separation)
S3method(print,grapht)
export("%>%")
Expand All @@ -50,9 +51,14 @@ export(ag_positive)
export(ag_qualitative)
export(ag_sequential)
export(ag_size)
export(check_angles)
export(check_contrast)
export(check_crossings)
export(check_drawing)
export(check_lengths)
export(check_offset)
export(check_separation)
export(check_slopes)
export(check_span)
export(check_stress)
export(count_pages)
Expand Down Expand Up @@ -113,6 +119,8 @@ export(match_color)
export(scale_colour_hue)
export(scale_size)
export(scale_x_continuous)
export(scale_x_mdate)
export(scale_y_mdate)
export(set_completion)
export(set_stocnet_medium)
export(set_stocnet_theme)
Expand Down
26 changes: 26 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# autograph 1.2.3

## Package

- Added `{messydates}` to `Suggests`
- Raised `{manynet}` floor to 2.3.1

## Theming

- Added `scale_x_mdate()` and `scale_y_mdate()` (closes globalgov/messydates#104)
- `FUN` resolves each messy date to one date; `messydates::vmin` by default
- Moved the colour checks into `R/theme_aesthetics.R`

## Layouts

- Added `check_crossings()` for how many other ties each tie crosses
- Added `check_slopes()` for the slope each tie is drawn at
- Added `check_lengths()` for the total, max, and variance of tie lengths
- Added `check_angles()` for the angular resolution at each node
- Added `check_drawing()`, which reports those checks plus `check_stress()`

## Tutorials

- Improved the isolate/bundling/backbone section ordering
- Each layout quality measure now names the function that measures it

# autograph 1.2.2

## Package
Expand Down
180 changes: 0 additions & 180 deletions R/graph_costs.R

This file was deleted.

Loading
Loading