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
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
Metadata Files
README.md
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 plotsgeom_jitter_rast: raster jittered scatter plotsgeom_boxplot_jitter: boxplots that allows to jitter and rasterize outlier pointsgeom_tile_rast: raster heatmapgeom_beeswarm_rast: raster bee swarm plotsgeom_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
- Website: https://scholar.google.com/citations?user=rkEysdsAAAAJ
- Twitter: PetukhovViktor
- Repositories: 8
- Profile: https://github.com/VPetukhov
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
Top Committers
| Name | 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
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'
- Homepage: https://github.com/VPetukhov/ggrastr
- Documentation: http://cran.r-project.org/web/packages/ggrastr/ggrastr.pdf
- License: MIT + file LICENSE
-
Latest release: 1.0.2
published about 3 years ago
Rankings
Maintainers (1)
proxy.golang.org: github.com/VPetukhov/ggrastr
- Documentation: https://pkg.go.dev/github.com/VPetukhov/ggrastr#section-documentation
- License: other
-
Latest release: v1.0.2
published about 3 years ago
Rankings
proxy.golang.org: github.com/vpetukhov/ggrastr
- Documentation: https://pkg.go.dev/github.com/vpetukhov/ggrastr#section-documentation
- License: other
-
Latest release: v1.0.2
published about 3 years ago
Rankings
conda-forge.org: r-ggrastr
- Homepage: https://github.com/VPetukhov/ggrastr
- License: MIT
-
Latest release: 1.0.1
published over 4 years ago