cairocore provides a canvas and tools for fast 2d drawing operations.
It provides a low-level wrapper around the cariographics 2D graphics library (written in C) which provides drawing operations and related functions, with consistent output on multiple platforms and output media (e.g. SVG, PDF, PNG etc).
This package is not a graphics device - you can’t plot to it. Instead it provides a canvas for directly drawing shapes and text.
View the online documentation here
Click to show/hide code
wzxhzdk:1
wzxhzdk:2
## Example - drawing 10,000 alpha blended lines
Click to show/hide code
wzxhzdk:3
## Example - taking an array in R, drawing on it, returning it to R
Click to show/hide code
wzxhzdk:4
wzxhzdk:5
## Related Software
- The R [Cairo](https://cran.r-project.org/package=Cairo) package uses
the CairoGraphics library internally to provide graphics output
devices for plotting.
- The R [cairoDevice](https://cran.r-project.org/package=cairoDevice)
package appears to be almost identical to the `{Cairo}` package in
that it provides graphics output devices for plotting.
## Acknowledgements
- R Core for developing and maintaining R
- CRAN maintainers, for patiently shepherding packages onto CRAN and
maintaining the repositoryAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.