Comments (2)
Hi,
which version of deckgl for R are you using? In version 0.1.8 which can be installed via CRAN, the ColumnLayer is not supported, 'cause it uses version 6.2.4 of deck.gl.js where the class was not yet available.
Therefore, you need to install the latest stable version via
remotes::install_github("crazycapivara/deckgl")
In version 0.2.2 is already a add_column_layer function included, so that you can run the examle:
deckgl(zoom = 9, pitch = 35) %>%
add_column_layer(
data = bart_stations,
diskResolution = 10,
radius = 500,
getPosition = ~lng + lat,
getElevation = ~exits,
getFillColor = JS("d => [48, 128, Math.sqrt(d.exits)]"),
extruded = TRUE,
getTooltip = ~name
) %>%
add_mapbox_basemap()
And now there is also a shorter syntax to create data accessors with ~property_name
, see also NEWS.md.
from deckgl.
I tried to install using github, but it gave me some errors related to db corruption. But, I just downloaded 0.2.2 and installed. And it works perfectly now.
from deckgl.
Related Issues (20)
- update view state HOT 1
- Syntactic sugar section
- Move /inst/examples to /examples
- Rename first parameter in widegt function from deckgl to deck
- Add shiny example to shiny-bindungs in r-docs
- sf layers aren't rendering HOT 5
- Map not rendering HOT 1
- Adding terrain layer HOT 2
- deck gl layers toggle HOT 2
- Highlight Polygons HOT 1
- Lighting effects for R deckgl HOT 1
- Change view from MapView to OrthographicView
- trips Layer HOT 1
- OnClick not working HOT 1
- removing old add_legend in shiny app HOT 3
- Updating deckgl map in shiny removes previous layer HOT 1
- It is possible that Heatmap doesn't work? HOT 2
- Rendering multiple maps in a Quarto doc creates issue with hovering and tooltips HOT 1
- Rendering Rasters
- FlytoInterpolator
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 deckgl.