ggrastr

Raster geoms for ggplot2

https://github.com/vpetukhov/ggrastr

Science Score: 10.0%

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

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 8 committers (12.5%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.8%) to scientific vocabulary

Keywords from Contributors

visualisation single-cell-rna-seq ggplot-extension bioinformatics scrna-seq single-cell transcriptomics
Last synced: 11 months ago · JSON representation

Repository

Raster geoms for ggplot2

Basic Info
  • Host: GitHub
  • Owner: VPetukhov
  • License: other
  • Language: R
  • Default Branch: main
  • Size: 24.3 MB
Statistics
  • Stars: 222
  • Watchers: 5
  • Forks: 18
  • Open Issues: 2
  • Releases: 8
Created over 8 years ago · Last pushed about 3 years ago
Metadata Files
Readme Changelog License

README.md

<VPetukhov> CRAN status CRAN downloads

ggrastr

Rasterize only specific layers of a ggplot2 plot (for instance, large scatter plots with many points) while keeping all labels and text in vector format. This allows users to keep plots within a reasonable size limit without losing the vector properties of scale-sensitive information.

Installation

To install the stable version from CRAN, use:

r install.packages('ggrastr')

To install the latest version, use:

r install.packages('devtools') devtools::install_github('VPetukhov/ggrastr', build_vignettes = TRUE)

Rasterize any ggplot2 layer

Note that with ggrastr version 0.2.0, any ggplot2 geom provided by the user can be rasterized with the function rasterise(). Furthermore, when the aspect ratio is distorted, points are rendered without distortion.

For more details and examples, see the vignettes: * HTML version * Markdown version

Geoms provided

We also provide wrappers for several geoms to guarantee compatibility with an older version of ggrastr. However, we encourage users to use the rasterise() function instead.

  • geom_point_rast: raster scatter plots
  • geom_jitter_rast: raster jittered scatter plots
  • geom_boxplot_jitter: boxplots that allows to jitter and rasterize outlier points
  • geom_tile_rast: raster heatmap
  • geom_beeswarm_rast: raster bee swarm plots
  • geom_quasirandom_rast: raster quasirandom scatter plot

Troubleshooting

If your R session crashes when you try to render a rasterized plot, it's probably the case that your version of Cairo was built for another version of R (see Upgrading to a new version of R). To check if you are using a proper version, run the command below and ensure that the "Built" version is the same as your R version. r pkgs <- as.data.frame(installed.packages(), stringsAsFactors = FALSE, row.names = FALSE) pkgs[pkgs$Package == 'Cairo', c("Package", "LibPath", "Version", "Built")]

To ensure that Cairo works, try running Cairo::Cairo(type='raster'); dev.off() and check if it crashes your R session.

Citation

If you find ggrastr useful for your publication, please cite:

Viktor Petukhov, Teun van den Brand and Evan Biederstedt (2021). ggrastr: Raster Layers for 'ggplot2'. R package version 1.0.2. https://CRAN.R-project.org/package=ggrastr

Owner

  • Name: Viktor Petukhov
  • Login: VPetukhov
  • Kind: user
  • Location: Tbilisi, Georgia

PhD in Biostatistics, University of Copenhagen

GitHub Events

Total
  • Issues event: 3
  • Watch event: 9
  • Issue comment event: 3
Last Year
  • Issues event: 3
  • Watch event: 9
  • Issue comment event: 3

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 193
  • Total Committers: 8
  • Avg Commits per committer: 24.125
  • Development Distribution Score (DDS): 0.311
Past Year
  • Commits: 8
  • Committers: 3
  • Avg Commits per committer: 2.667
  • Development Distribution Score (DDS): 0.375
Top Committers
Name Email Commits
evanbiederstedt e****t@g****m 133
Viktor Petukhov v****v@y****u 20
evanbiederstedt e****t 13
Teun van den Brand 4****d 12
Ben b****n@v****u 9
Jan Gleixner j****r@g****m 3
kpjonsson p****n@g****m 2
Joseph Stachelek j****a 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 20
  • Total pull requests: 19
  • Average time to close issues: 7 months
  • Average time to close pull requests: 5 days
  • Total issue authors: 16
  • Total pull request authors: 7
  • Average comments per issue: 3.65
  • Average comments per pull request: 4.37
  • Merged pull requests: 17
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 0
  • Average time to close issues: about 11 hours
  • Average time to close pull requests: N/A
  • Issue authors: 3
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • VPetukhov (4)
  • jan-glx (2)
  • Zepeng-Mu (1)
  • Bisaloo (1)
  • Puriney (1)
  • zshiyue (1)
  • briandk (1)
  • rargelaguet (1)
  • samuel-marsh (1)
  • jeskowagner (1)
  • scottgigante (1)
  • jgarces02 (1)
  • AlexWeinreb (1)
  • rootze (1)
  • ericscheier (1)
Pull Request Authors
  • evanbiederstedt (10)
  • teunbrand (3)
  • jan-glx (2)
  • jsta (1)
  • statsmaths (1)
  • kpjonsson (1)
  • bjreisman (1)
Top Labels
Issue Labels
help wanted (3) enhancement (2) good first issue (2)
Pull Request Labels

Packages

  • Total packages: 4
  • Total downloads:
    • cran 15,173 last-month
  • Total docker downloads: 16,524
  • Total dependent packages: 11
    (may contain duplicates)
  • Total dependent repositories: 39
    (may contain duplicates)
  • Total versions: 32
  • Total maintainers: 1
cran.r-project.org: ggrastr

Rasterize Layers for 'ggplot2'

  • Versions: 9
  • Dependent Packages: 11
  • Dependent Repositories: 36
  • Downloads: 15,173 Last month
  • Docker Downloads: 16,524
Rankings
Stargazers count: 2.1%
Downloads: 4.0%
Forks count: 4.1%
Dependent repos count: 4.3%
Dependent packages count: 5.3%
Average: 6.3%
Docker downloads count: 17.7%
Maintainers (1)
Last synced: 11 months ago
proxy.golang.org: github.com/VPetukhov/ggrastr
  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.5%
Average: 6.7%
Dependent repos count: 6.9%
Last synced: 11 months ago
proxy.golang.org: github.com/vpetukhov/ggrastr
  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.5%
Average: 6.7%
Dependent repos count: 6.9%
Last synced: 11 months ago
conda-forge.org: r-ggrastr
  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 3
Rankings
Dependent repos count: 18.0%
Stargazers count: 26.8%
Average: 33.8%
Forks count: 38.8%
Dependent packages count: 51.6%
Last synced: 11 months ago