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
3 changes: 3 additions & 0 deletions R/netplot-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@
#' "netplot")` for mapping vertex/edge aesthetics from graph attributes.
#'
#' @keywords internal
#' @section How to cite:
#' If you use \pkg{netplot} in published work, please cite it. Run
#' \code{citation("netplot")} in R for the full entry.
"_PACKAGE"
5 changes: 5 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.onAttach <- function(libname, pkgname) {
packageStartupMessage(
"Using netplot in your research? Please cite it: citation(\"netplot\")"
)
}
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ status](https://www.r-pkg.org/badges/version/netplot)](https://cran.r-project.or

# netplot <img src="man/figures/logo.png" align="right" height="200" alt="rgexf hex sticker logo"/>


<!-- how-to-cite -->
> [!NOTE]
> **How to cite netplot.** If you use **netplot** in published work, please cite it:
>
> Vega Yon G, Bischoff P. *netplot: Beautiful Graph Drawing*. doi:[10.32614/CRAN.package.netplot](https://doi.org/10.32614/CRAN.package.netplot)
>
> Run `citation("netplot")` in R for the BibTeX entry.
<!-- how-to-cite -->

**netplot** is a graph visualization engine for R that emphasizes
*aesthetics*. Its defaults are chosen so that a single call to `nplot()`
produces a publication-quality figure out of the box, while still giving
Expand Down
10 changes: 10 additions & 0 deletions README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ status](https://www.r-pkg.org/badges/version/netplot)](https://cran.r-project.or
# netplot <img src="man/figures/logo.png" align="right" height="200" alt="rgexf hex sticker logo"/>



<!-- how-to-cite -->
> [!NOTE]
> **How to cite netplot.** If you use **netplot** in published work, please cite it:
>
> Vega Yon G, Bischoff P. *netplot: Beautiful Graph Drawing*. doi:[10.32614/CRAN.package.netplot](https://doi.org/10.32614/CRAN.package.netplot)
>
> Run `citation("netplot")` in R for the BibTeX entry.
<!-- how-to-cite -->

**netplot** is a graph visualization engine for R that emphasizes *aesthetics*.
Its defaults are chosen so that a single call to `nplot()` produces a
publication-quality figure out of the box, while still giving you fine-grained
Expand Down
25 changes: 25 additions & 0 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Year resolution: CRAN sets Date/Publication on the installed package; fall
# back to DESCRIPTION's Date, then to the current year, so the package entry
# never renders as "(????)".
year <- if (!is.null(meta$`Date/Publication`)) {
substr(meta$`Date/Publication`, 1, 4)
} else if (!is.null(meta$Date)) {
substr(meta$Date, 1, 4)
} else {
format(Sys.Date(), "%Y")
}
note <- sprintf("R package version %s", meta$Version)

bibentry(
bibtype = "Manual",
title = "{{netplot: Beautiful Graph Drawing}}",
author = c(
person("George", "Vega Yon", comment = c(ORCID = "0000-0002-3171-0844")),
person("Porter", "Bischoff", comment = c(ORCID = "0009-0004-6742-6281"))
),
year = year,
note = note,
url = "https://github.com/USCCANA/netplot",
doi = "10.32614/CRAN.package.netplot",
header = "To cite netplot in publications use:"
)
4 changes: 4 additions & 0 deletions man/netplot-package.Rd

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

5 changes: 5 additions & 0 deletions vignettes/base-and-grid.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ vignette: >
%\VignetteEncoding{UTF-8}
---

<!-- how-to-cite -->
> **How to cite.** If you use **netplot** in published work, please cite it — run
> `citation("netplot")` in R for the full entry.
<!-- how-to-cite -->

Working with grid graphics provides flexibility that is harder to get when using base graphics. Nevertheless, a lot of users may still be more comfortable with base graphics, so this document shows a few examples of how to mix both of them using the [`gridBase`](https://cran.r-project.org/package=gridBase) package.

First, we load igraph to simulate a small network and complement that with uninteresting correlated data:
Expand Down
5 changes: 5 additions & 0 deletions vignettes/examples.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ vignette: >
%\VignetteEncoding{UTF-8}
---

<!-- how-to-cite -->
> **How to cite.** If you use **netplot** in published work, please cite it — run
> `citation("netplot")` in R for the full entry.
<!-- how-to-cite -->

Some features:

1. Auto-scaling of vertices using sizes relative to the plotting device.
Expand Down
5 changes: 5 additions & 0 deletions vignettes/formulas.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ vignette: >
%\VignetteEncoding{UTF-8}
---

<!-- how-to-cite -->
> **How to cite.** If you use **netplot** in published work, please cite it — run
> `citation("netplot")` in R for the full entry.
<!-- how-to-cite -->

```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
Expand Down