gglinedensity

Make DenseLines Heatmaps with 'ggplot2'

https://github.com/hrryt/gglinedensity

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.4%) to scientific vocabulary

Keywords

data-visualisation data-visualization ggplot-extension ggplot2 r rstats
Last synced: 6 months ago · JSON representation

Repository

Make DenseLines Heatmaps with 'ggplot2'

Basic Info
Statistics
  • Stars: 9
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 3
Topics
data-visualisation data-visualization ggplot-extension ggplot2 r rstats
Created 10 months ago · Last pushed 9 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%",
  dpi = 300
)
```

# gglinedensity






The goal of gglinedensity is to bring the DenseLines algorithm to R via ggplot2,
providing a "derived density visualisation (that) allows users both to see the aggregate
trends of multiple (time) series and to identify anomalous extrema" ([Moritz and Fisher, 2018](https://doi.org/10.48550/arXiv.1808.06019)).

## Installation

You can install gglinedensity like so:

```r
install.packages("gglinedensity")
```

You can install the development version of gglinedensity like so:

``` r
# install.packages("pak")
pak::pak("hrryt/gglinedensity")
```

## Example

This is a basic example which shows you how to create a DenseLines heatmap:

```{r line}
library(ggplot2)
library(gglinedensity)
library(patchwork)

p <- ggplot(txhousing, aes(date, median, group = city))
lines <- p + geom_line(alpha = 0.2, na.rm = TRUE)
heatmap <- p + stat_line_density(bins = 50, drop = FALSE, na.rm = TRUE)
lines + heatmap + plot_layout(axes = "collect")
```

You can also calculate the number of paths crossing a given bin,
without using the DenseLines algorithm:

```{r path}
ggplot(dplyr::storms, aes(long, lat, group = name)) +
    borders(colour = NA, fill = "grey50") +
    stat_path_density(geom = "tile", binwidth = 1.25, na.rm = TRUE) +
    borders() +
    xlim(-180, 0) +
    ylim(-40, 80) +
    coord_sf(
        crs = sf::st_crs(5070),
        default_crs = sf::st_crs(4326),
        xlim = c(-120, -30), ylim = c(0, 70)
    ) +
    theme(panel.background = element_rect(fill = "grey10"))
```

Owner

  • Login: hrryt
  • Kind: user

GitHub Events

Total
  • Create event: 6
  • Release event: 3
  • Issues event: 2
  • Watch event: 9
  • Push event: 35
Last Year
  • Create event: 6
  • Release event: 3
  • Issues event: 2
  • Watch event: 9
  • Push event: 35

Packages

  • Total packages: 1
  • Total downloads:
    • cran 541 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: gglinedensity

Make DenseLines Heatmaps with 'ggplot2'

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 541 Last month
Rankings
Dependent packages count: 26.6%
Dependent repos count: 32.7%
Average: 48.6%
Downloads: 86.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/rhub.yaml actions
  • r-hub/actions/checkout v1 composite
  • r-hub/actions/platform-info v1 composite
  • r-hub/actions/run-check v1 composite
  • r-hub/actions/setup v1 composite
  • r-hub/actions/setup-deps v1 composite
  • r-hub/actions/setup-r v1 composite
src/rust/Cargo.lock cargo
  • ab_glyph_rasterizer 0.1.8
  • adler 1.0.2
  • adler32 1.2.0
  • autocfg 1.4.0
  • bitflags 1.3.2
  • bytemuck 1.22.0
  • byteorder 1.5.0
  • cc 1.2.19
  • cfg-if 1.0.0
  • color_quant 1.1.0
  • conv 0.3.3
  • crc32fast 1.4.2
  • crossbeam-deque 0.8.6
  • crossbeam-epoch 0.9.18
  • crossbeam-utils 0.8.21
  • custom_derive 0.1.7
  • deflate 0.8.6
  • either 1.15.0
  • getrandom 0.1.16
  • gif 0.11.4
  • image 0.23.14
  • imageproc 0.22.0
  • itertools 0.9.0
  • jpeg-decoder 0.1.22
  • libc 0.2.172
  • matrixmultiply 0.1.15
  • miniz_oxide 0.3.7
  • miniz_oxide 0.4.4
  • num 0.1.43
  • num 0.3.1
  • num-bigint 0.3.3
  • num-complex 0.3.1
  • num-integer 0.1.46
  • num-iter 0.1.45
  • num-rational 0.3.2
  • num-traits 0.2.19
  • owned_ttf_parser 0.15.2
  • png 0.16.8
  • ppv-lite86 0.2.21
  • proc-macro2 1.0.95
  • quote 1.0.40
  • rand 0.7.3
  • rand_chacha 0.2.2
  • rand_core 0.5.1
  • rand_distr 0.2.2
  • rand_hc 0.2.0
  • rawpointer 0.1.0
  • rayon 1.10.0
  • rayon-core 1.12.1
  • rulinalg 0.4.2
  • rusttype 0.9.3
  • rustversion 1.0.20
  • savvy 0.8.10
  • savvy-bindgen 0.8.10
  • savvy-ffi 0.8.10
  • savvy-macro 0.8.10
  • scoped_threadpool 0.1.9
  • shlex 1.3.0
  • syn 2.0.100
  • tiff 0.6.1
  • ttf-parser 0.15.2
  • unicode-ident 1.0.18
  • wasi 0.9.0+wasi-snapshot-preview1
  • weezl 0.1.8
  • zerocopy 0.8.24
  • zerocopy-derive 0.8.24
src/rust/Cargo.toml cargo
DESCRIPTION cran
  • cli * imports
  • ggplot2 * imports
  • lifecycle * imports
  • rlang * imports
  • scales * imports
  • vctrs * imports