davidcarslaw / openair

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

R/polarDiff.R refinements #323

Closed jack-davison closed 1 year ago

jack-davison commented 1 year ago

Two key fixes to polarDiff():

  1. Return the plot. Previously, the below chunk wouldn't work, because the plot wasn't returned in the openair object.
out <- polarDiff(before, after)
out$plot
  1. Honour the alpha/key/par.settings arguments, for the benefit of openairmaps.

image

Anuragsahucuraj commented 1 year ago

Hello Sir

I am trying to change the polar diff color bar position left to bottom but the key. Position command is not working. Please resolve my issuse This is my code Diff1718<-polarDiff(befor_2017, after_2018, x ="WS", wd= "wd", pollutant = "O3", statistic = "cpf", cols= "jet", percentile=75, exclude.missing = TRUE, auto.text = TRUE, min.bin=1,angle.scale= 45 ,key.position = "bottom", key=TRUE, par.settings=list(fontsize=list(text=50, font=10)), y.relation = "free", x.relation = "free",alpha=1, resolution ="fine")