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
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ vignettes/precompile\.R
^CRAN-SUBMISSION$
^README\.Rmd$
^.mailmap$
^\.positai$
^\.claude$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ CRAN-SUBMISSION
toadd/*
.data.csv
cache/*
.positai
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: autograph
Title: Automatic Plotting and Theming of Many Graphs
Version: 1.0.0
Date: 2026-04-04
Version: 1.0.1
Date: 2026-04-30
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 Down
15 changes: 15 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# autograph 1.0.1

## Package

- Updated the logo
- Fixed the error in some flavours by removing environment references in included objects

## Plotting

- Closed #44 by adding example that uses `ggplot2::scale_colour_discrete()` to tweak colour output

## Tutorials

- Fixed the tutorial to use netrics functions

# autograph 1.0.0

## Package
Expand Down
1 change: 1 addition & 0 deletions R/plot_interp.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ NULL
#' Use `quad = FALSE` for similarity effects.
#' @examples
#' plot(siena_selection)
#' plot(siena_selection) + ggplot2::scale_colour_discrete()
Comment thread
jhollway marked this conversation as resolved.
#' @export
plot.selectionTable <- function(x, quad = TRUE, separation = 0, ...){

Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

0 errors | 0 warnings | 0 notes

- Updates to bring autograph into line with latest version of manynet (> v2.0.0)
- Fixed the error in some flavours by removing environment references in included objects
Binary file modified data/ergm_res.rda
Binary file not shown.
Binary file added inst/autograph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
26 changes: 13 additions & 13 deletions inst/tutorials/tutorial2/visualisation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@
to the node.

```{r degsize, exercise = TRUE, fig.width=9}
fict_lotr %>%

Check warning on line 275 in inst/tutorials/tutorial2/visualisation.Rmd

View workflow job for this annotation

GitHub Actions / Build for macOS-latest

file=inst/tutorials/tutorial2/visualisation.Rmd,line=275,col=14,[trailing_whitespace_linter] Remove trailing whitespace.

Check warning on line 275 in inst/tutorials/tutorial2/visualisation.Rmd

View workflow job for this annotation

GitHub Actions / Build for macOS-latest

file=inst/tutorials/tutorial2/visualisation.Rmd,line=275,col=11,[pipe_consistency_linter] Use the |> pipe operator instead of the %>% pipe operator.
mutate(Degree = node_deg(fict_lotr)) %>%
mutate(Degree = node_by_deg(fict_lotr)) %>%

Check warning on line 276 in inst/tutorials/tutorial2/visualisation.Rmd

View workflow job for this annotation

GitHub Actions / Build for macOS-latest

file=inst/tutorials/tutorial2/visualisation.Rmd,line=276,col=46,[trailing_whitespace_linter] Remove trailing whitespace.

Check warning on line 276 in inst/tutorials/tutorial2/visualisation.Rmd

View workflow job for this annotation

GitHub Actions / Build for macOS-latest

file=inst/tutorials/tutorial2/visualisation.Rmd,line=276,col=43,[pipe_consistency_linter] Use the |> pipe operator instead of the %>% pipe operator.
graphr(node_size = "Degree")
```

Expand All @@ -290,9 +290,9 @@
then `graphr()` will even try to use this information automatically.

```{r tiesize, exercise = TRUE, fig.width=9}
fict_lotr %>%

Check warning on line 293 in inst/tutorials/tutorial2/visualisation.Rmd

View workflow job for this annotation

GitHub Actions / Build for macOS-latest

file=inst/tutorials/tutorial2/visualisation.Rmd,line=293,col=14,[trailing_whitespace_linter] Remove trailing whitespace.

Check warning on line 293 in inst/tutorials/tutorial2/visualisation.Rmd

View workflow job for this annotation

GitHub Actions / Build for macOS-latest

file=inst/tutorials/tutorial2/visualisation.Rmd,line=293,col=11,[pipe_consistency_linter] Use the |> pipe operator instead of the %>% pipe operator.
mutate_ties(weight = tie_closeness(fict_lotr),
mutate_ties(weight = tie_by_closeness(fict_lotr),
is_tri = tie_is_triangular(fict_lotr)) %>%

Check warning on line 295 in inst/tutorials/tutorial2/visualisation.Rmd

View workflow job for this annotation

GitHub Actions / Build for macOS-latest

file=inst/tutorials/tutorial2/visualisation.Rmd,line=295,col=57,[trailing_whitespace_linter] Remove trailing whitespace.

Check warning on line 295 in inst/tutorials/tutorial2/visualisation.Rmd

View workflow job for this annotation

GitHub Actions / Build for macOS-latest

file=inst/tutorials/tutorial2/visualisation.Rmd,line=295,col=54,[pipe_consistency_linter] Use the |> pipe operator instead of the %>% pipe operator.
graphr(edge_color = "is_tri")
```

Expand Down Expand Up @@ -336,10 +336,10 @@

```{r colorch, exercise=TRUE, fig.width=9}
graphr(fict_lotr,
node_color = "Race")

Check warning on line 339 in inst/tutorials/tutorial2/visualisation.Rmd

View workflow job for this annotation

GitHub Actions / Build for macOS-latest

file=inst/tutorials/tutorial2/visualisation.Rmd,line=339,col=11,[indentation_linter] Hanging indent should be 7 spaces but is 11 spaces.

graphr(fict_lotr,
node_color = "Race") +

Check warning on line 342 in inst/tutorials/tutorial2/visualisation.Rmd

View workflow job for this annotation

GitHub Actions / Build for macOS-latest

file=inst/tutorials/tutorial2/visualisation.Rmd,line=342,col=11,[indentation_linter] Hanging indent should be 7 spaces but is 11 spaces.
ggplot2::scale_fill_hue()
```

Expand Down Expand Up @@ -444,7 +444,7 @@

```{r maxbet, exercise = TRUE, fig.width=9}
fict_lotr %>%
mutate(maxbet = node_is_max(node_betweenness(fict_lotr))) %>%
mutate(maxbet = node_is_max(node_by_betweenness(fict_lotr))) %>%
graphr(node_color = "maxbet")
```

Expand All @@ -457,7 +457,7 @@

```{r legend, exercise=TRUE, fig.width=9}
fict_lotr %>%
mutate(maxbet = node_is_max(node_betweenness(fict_lotr))) %>%
mutate(maxbet = node_is_max(node_by_betweenness(fict_lotr))) %>%
graphr(node_color = "maxbet") +
guides(color = "legend") +
labs(color = "Maximum\nBetweenness")
Expand Down Expand Up @@ -519,7 +519,7 @@

The _Stress Minimisation_ (stress) method is related to the KK algorithm,
but offers better runtime, quality, and stability and so is generally preferred.
Indeed, `{manynet}` uses it as the default for most networks.
Indeed, `{autograph}` uses it as the default for most networks.
It has the advantage of returning the same layout each time it is run on the same network.

```{r layoutinterp-Q, echo=FALSE, purl = FALSE}
Expand Down Expand Up @@ -679,10 +679,10 @@
it is very useful for visualising changes in networks over time.

```{r grapht, exercise=TRUE}
fict_lotr %>%
mutate_ties(year = sample(1:12, 66, replace = TRUE)) %>%
to_waves(attribute = "year", cumulative = TRUE) %>%
grapht()
# fict_lotr %>%
# mutate_ties(year = sample(1:12, 66, replace = TRUE)) %>%
# to_waves(attribute = "year", cumulative = TRUE) %>%
# grapht()
Comment thread
jhollway marked this conversation as resolved.
```

More functionality will be added to this function in future releases.
Expand Down Expand Up @@ -772,11 +772,11 @@

```{r plotexamples, exercise=TRUE, fig.width=9}
stocnet_theme("default")
plot(node_degree(fict_lotr)) +
plot(node_closeness(fict_lotr))
plot(node_by_degree(fict_lotr)) +
plot(node_by_closeness(fict_lotr))
stocnet_theme("oxf")
plot(node_degree(fict_lotr)) +
plot(node_closeness(fict_lotr))
plot(node_by_degree(fict_lotr)) +
plot(node_by_closeness(fict_lotr))
```

This is a very simple example, but the same principle applies to
Expand Down
110 changes: 57 additions & 53 deletions inst/tutorials/tutorial2/visualisation.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion man/autograph-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified man/figures/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions man/plot_interp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading