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

Map Grid Settings using TrajLevel #397

Open sofoniba opened 2 months ago

sofoniba commented 2 months ago

Question

Hi! Unfortunately, I can't set the grid settings for the map. I tried some settings according to the recommendations on the forum, but it didn't affect the result. The issues I'd like to change for the map (I attached .png file):

  1. The number of lines by latitude and longitude. In the code, I set the parameters nx and ny, but it doesn't help.
  2. The font size for indicating latitude and longitude on the grid. I used cex and font, but the picture doesn't change.
  3. The size and color of the station symbol - I don't understand which setting to set this with. I would be very grateful for your help! My code is below:
 trajLevel(traj,
      pollutant = "ch4", 
      year = 2018,
      month = 7,
      statistic = "pscf",
      percentile = 70,
      smooth = TRUE,
      projection ='azequidistant', 
      parameters = NULL,
      orientation=c(90,0,0),
      expand=TRUE,
      col = "increment",
      border = NA,
      map.fill = FALSE,
      xlim=c(-180, 180),
      ylim=c(60,90),
      nx=6,
      ny=3,
      grid.col="grey60",
      grid.text=c(cex = 5, font = 2, col = "red")
      )

Exp2