Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello!
I've generated a customvisual based on a r script, however, I'm obtainning the follow error:
My Rscript is:
setwd("D:/IDGeo/Earth analytics course_Learn data science/data/week 4")
library(tidyverse)
library(htmlwidgets)
library(raster)
library(sf)
library(leaflet)
library(pandocfilters)
pivos <- st_read("california/SJER/vector_data/aneis_anapaula_0904.shp") %>%
st_transform(4326)
ndwi<- raster("california/SJER/vector_data/2017_06_04_NDWI_CLIP_wgs.tif")
chrt <- leaflet() %>%
addProviderTiles(providers$CartoDB.Positron) %>%
addPolygons(data = pivos,
fillOpacity = 0,
stroke = T) %>%
addRasterImage(ndwi)
saveWidget(chrt, "chart.html")
chrtThe Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 4 | |
| 4 | |
| 3 |