Comments (4)
Not impolite at all. However, the release version of ggfx handles geom_sf()
just fine so there is no need to jump through any hoops to get it workingπ
from ggfx.
Thank you for the report - it is an oversight on my part. geom_sf()
returns a list instead of a layer and I didn't plan for that
from ggfx.
I hope it is not impolite to comment on a closed issue π€
Yet, I wanted to give a quick heads up since I regularly use {ggfx} with geom_sf()
and it works just fine.
I simply catch the first element of said returned list - like so:
library(rnaturalearth)
library(sf)
library(ggfx)
library(ggplot2)
canada <- ne_states(country = "Canada", returnclass = "sf")
canada_inset <- st_buffer(canada, -.7)
ggplot() +
as_reference(
geom_sf(data = canada_inset)[[1]],
id = 'inset' ) +
geom_sf(data = canada) +
with_blend(
with_blur( geom_sf(data = canada_inset,
size = 3,
color = rgb(0,0,0,.4),
fill = "transparent")[[1]],
sigma = 3),
bg_layer = 'inset',
blend_type = 'in') +
coord_sf(crs = 3347)
(link to the plot on imgur - I believe it is not displayed on github...)
Created on 2021-04-08 by the reprex package (v2.0.0)
from ggfx.
awesome - I missed that update π π€©
from ggfx.
Related Issues (20)
- Caching of filter result?
- Texture and gradient constructors
- Additional raster helpers
- drawing confidence intervals properly HOT 1
- filtering of label keys?
- Release ggfx 1.0.0
- 'color' doesn't work in with_outer_glow() HOT 3
- is it possible to manually adjust the resolution of with_raster()? HOT 2
- Make sure that filter referencing doesn't fail with empty layers
- Specify blur area: with_blur
- Make `colour` from `with_outer_glow()` an aesthetic HOT 1
- function to calculate pixel coordinate from axis coordinate HOT 5
- Release ggfx 1.0.1
- Pixelated output from with_mask()
- Vector output seems not possible HOT 2
- with_outer_glow() - Negative values not shown HOT 1
- Error with custom filter and theme_void() HOT 1
- Unexpected behavior with_mask and with_shadow output
- Add supersampling setting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggfx.