davidcarslaw / openair

Tools for air quality data analysis
https://davidcarslaw.github.io/openair/
GNU General Public License v2.0
305 stars 113 forks source link

"Please explain how to use CPF in polarMap." #379

Closed arrowhead1234 closed 8 months ago

arrowhead1234 commented 8 months ago

Question

polarMap(wind2, pollutant = "benzene",
latitude = "lat",
longitude = "lon",
iconWidth = 150,
iconHeight = 150,
provider = leaflet::providers$Esri.WorldImagery, statistic = 'cpf', cols = "jet")

I receive 20 warnings in dplyr::mutate(). The first warning is: In argument: plot = purrr::map(data, fun, .progress = "Creating Polar Markers"). Caused by warning in openair::polarPlot(): ! percentile value missing, using 75

And when I run dplyr::last_dplyr_warnings(), I get:

Error in gsub(ansi_regex, "", x, perl = TRUE): input string 1 is invalid UTF-8 Additional warning messages: In gsub(ansi_regex, "", x, perl = TRUE): unable to translate '"Creating Polar Markers"' to UTF-8

Despite attempting to resolve this, when I visualize the data, no wind rose is formed. Is 'cpf' not working with polarMap?"

arrowhead1234 commented 8 months ago

"It turns out that the error was due to insufficient data."