You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The legend could be improved by moving the NA below the values/colorscale. Similarly in the Asian blog post map:
The legend and labels in the map should probably also be Poppins font - I found a solution online for the NA issue and Christy helped me supplement to fix the font issues with this code, which is added as the last lines before printing the map:
# fix the legend NA placement (https://github.com/rstudio/leaflet/issues/615)
css_fix <- "div.info.legend.leaflet-control br {clear: both;} html * {font-family: Poppins !important;}" # CSS to correct spacing and font family
html_fix <- htmltools::tags$style(type = "text/css", css_fix) # Convert CSS to HTML
medinc_map %<>% htmlwidgets::prependContent(html_fix) # Insert into leaflet HTML code
In the map I generated it makes it look like this (ignore the different color palette):
The text was updated successfully, but these errors were encountered:
The legend could be improved by moving the NA below the values/colorscale. Similarly in the Asian blog post map:
![image](https://user-images.githubusercontent.com/72169299/233460607-6259e9ea-0cb9-468e-897b-f4cdb4e8de9b.png)
The legend and labels in the map should probably also be Poppins font - I found a solution online for the NA issue and Christy helped me supplement to fix the font issues with this code, which is added as the last lines before printing the map:
In the map I generated it makes it look like this (ignore the different color palette):
![image](https://user-images.githubusercontent.com/72169299/233460129-d98b5c1f-2001-4b94-825f-02a582f265c7.png)
The text was updated successfully, but these errors were encountered: