Package: ggfx 1.0.3.9000

ggfx: Pixel Filters for 'ggplot2' and 'grid'

Provides a range of filters that can be applied to layers from the 'ggplot2' package and its extensions, along with other graphic elements such as guides and theme elements. The filters are applied at render time and thus uses the exact pixel dimensions needed.

Authors:Thomas Lin Pedersen [aut, cre], RStudio [cph, fnd]

ggfx_1.0.3.9000.tar.gz
ggfx_1.0.3.9000.zip(r-4.7)ggfx_1.0.3.9000.zip(r-4.6)ggfx_1.0.3.9000.zip(r-4.5)
ggfx_1.0.3.9000.tgz(r-4.6-any)ggfx_1.0.3.9000.tgz(r-4.5-any)
ggfx_1.0.3.9000.tar.gz(r-4.7-any)ggfx_1.0.3.9000.tar.gz(r-4.6-any)
ggfx_1.0.3.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
ggfx/json (API)

# Install 'ggfx' in R:
install.packages('ggfx', repos = c('https://thomasp85.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/thomasp85/ggfx/issues

Pkgdown/docs site:https://ggfx.data-imaginist.com

On CRAN:

Conda:

filtersggplot2graphics

10.07 score 176 stars 3 packages 558 scripts 1.5k downloads 69 exports 27 dependencies

Last updated from:ccc7ba2509. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK202
source / vignettesOK310
linux-release-x86_64OK157
macos-release-arm64OK113
macos-oldrel-arm64OK91
windows-develOK145
windows-releaseOK100
windows-oldrelOK111
wasm-releaseOK149

Exports:as_colourspaceas_groupas_referenceblend_custom_rasterblend_rasterbloom_rasterblur_rasterch_alphach_blackch_bluech_chromach_customch_cyanch_greench_huech_keych_lightnessch_luminancech_magentach_redch_saturationch_yellowconvolve_grobcurrent_resolutiondisplace_rasterdither_rasterfrom_pixelsget_raster_areaget_viewport_areaindex_rasterinner_glow_rasterinterpolate_rastermask_rastermotion_blur_rasterordered_dither_rasterouter_glow_rasterras_fillras_fitras_placeras_stretchras_tileset_raster_areaset_viewport_areashade_rasterto_pixelsvariably_blur_rasterviewport_is_clippingviewport_locationwith_blendwith_blend_customwith_bloomwith_blurwith_circle_ditherwith_customwith_custom_ditherwith_displacementwith_ditherwith_halftone_ditherwith_inner_glowwith_interpolatewith_kernelwith_maskwith_motion_blurwith_ordered_ditherwith_outer_glowwith_rasterwith_shadewith_shadowwith_variable_blur

Dependencies:base64encclicpp11curlfarverggplot2gluegtableisobandjsonlitelabelinglifecyclemagickmagrittrR6raggRColorBrewerRcpprlangS7scalesstringisystemfontstextshapingvctrsviridisLitewithr

Using ggfx in ggplot2 extensions
Our geom | How to draw a variable blur | Filtering a filtered geom

Last update: 2025-09-01
Started: 2021-03-02

Getting Started with Filters
What are filters | Filters and vector graphics | Using ggfx | The with_ functions | Combining layers | Using specific channels

Last update: 2025-07-23
Started: 2021-02-24

Custom filters
The input | nativeRaster objects | Filter output | Drawing area | Our first filter | Taking control of nativeRaster | Detour: Escaping pixel values | Finding the viewport | Using magick | Wrapping up

Last update: 2021-03-08
Started: 2021-03-02

Readme and manuals

Help Manual

Help pageTopics
Collect channels into a single layer of a specific colourspaceas_colourspace
Collect layers into a group that can be treated as a single layeras_group
Create a reference to a layer for use in other filtersas_reference
Set a channel of interest from a layerChannels ch_alpha ch_black ch_blue ch_chroma ch_custom ch_cyan ch_green ch_hue ch_key ch_lightness ch_luminance ch_magenta ch_red ch_saturation ch_yellow
Supported object typesobject_support
Control placements of raster in the plotraster_placement ras_fill ras_fit ras_place ras_stretch ras_tile
Rendering informationcurrent_resolution from_pixels get_raster_area get_viewport_area index_raster render_context set_raster_area set_viewport_area to_pixels viewport_is_clipping viewport_location
Blend a layer with a referencewith_blend
Create a custom blend typewith_blend_custom
Apply bloom to your layerwith_bloom
Apply a gaussian blur to your layerwith_blur
Dither image using a threshold dithering mapwith_circle_dither with_custom_dither with_halftone_dither with_ordered_dither
Apply a custom filterwith_custom
Apply a displacement map to a layerwith_displacement
Dither image using Floyd-Steinberg error correction ditheringwith_dither
Apply an inner glow to your layerwith_inner_glow
Blend two layerrs together by averaging them outwith_interpolate
Apply a gaussian blur to your layerwith_kernel
Apply a mask to a layerwith_mask
Apply a motion blur to your layerwith_motion_blur
Apply an outer glow to your layerwith_outer_glow
Convert a layer to a rasterwith_raster
Apply a gaussian blur to your layerwith_shade
Apply a drop shadow to a layerwith_shadow
Apply a variable blur to a layerwith_variable_blur