I have created an interactive ggplot map using the girafe function with the below code
A<-ggplot(data)+geom_sf_interactive(aes(fill=Pop_Rate,tooltip = sprintf("%s<br/>%s", Region,Pop_Rate)))
girafe(code, ggobj = A,
options = list(opts_tooltip(use_fill = TRUE),
opts_zoom(min = 1, max = 5),opts_toolbar(saveaspng = FALSE)))
When I add this code to an R markdown flexidashboard, the output includes output from the r console as well as the map
Reading layer
Counties_and_Unitary_Authorities__April_2019__Boundaries_EW_BUC' from data source
C:\Users\qrs19x\OneDrive - Ministry of Justice\Documents\R\Maps\Shapes\Counties_and_Unitary_Authorities__April_2019__Boundaries_EW_BUC.shp' using driver `ESRI Shapefile' Simple feature collection with 173 features and 10 fields Geometry type: MULTIPOLYGON Dimension: XY Bounding box: xmin: 86999.8 ymin: 7054.1 xmax: 655644.8 ymax: 657548.1 Projected CRS: OSGB 1936 / British National Grid
I tried results=FALSE but this also hides my "hide" to my chart. currently using the following
```{r, echo=FALSE, message=FALSE, warning=FALSE}