I'm trying to load my script in power BI, which is:
setwd("C:/Users/Daniel/Desktop/IDGeo/Earth analytics course_Learn data science/data/week 4")
ndwi <- raster("california/SJER/vector_data/2017_06_04_NDWI_CLIP.tif")
pivos <- readOGR(dsn = "california/SJER/vector_data",
M2<- mapView(ndwi, alpha.regions = 0.50, na.color = "transparent")
m4 <- mapview(pivos, lwd = 1.5, color = "gray40")
M2 + m4
ndwi is my raster data
pivos is my shapefile
In R it works perfectly and returns an interactive map containing my raster data plus myshapefile.
Anyone knows what could be happening?
Or, anyone could suggest another way to plot raster + shapefile interactive maps in power BI using R?
Thanks very much, best regards.