plot.airshed: Create Plots for HYSPLIT-derived Seasonal Airshed

Description Usage Arguments Examples

View source: R/plot.airshed.R

Description

Create plots for seasonal airsheds with daily HYSPLIT back trajectories for a given point location

Usage

1
2
3
4
5
6
7
8
9
plot.airshed(loc, lon, lat, day_select, year_select,
   tYears=year_select[1]:year_select[length(year_select)],
   season_name, hy_alt, alt.adj=0, sPix=0.25, nPix=100,
   borderName="ne_10m_admin_0_countries", x.adj=FALSE, zoom=4.5, x.just=0,
   y.just=0, nKM=150, traj.col=c("#a6cee3","#fb9a99","#cab2d6"),
   traj.lwd=0.25, col.adj=c(0,0,0,0), scale.adj=c(0,0),
   bar.adj=c(0,0,0,0), caption=NA, caption.adj=c(0,0),
   nAlt.adj=c(0,0), legend.lab=hy_alt,
   legend.adj=c(0,0), txt_size=0.75, ...)

Arguments

loc

character. Name of location, starting point, used in naming subdirectories and files

lon

numeric. Longitude of starting point

lat

numeric. Latitude of starting point

year_select

numeric vector. Years to be run

tYears

numeric vector. Total range of years in study, ignoring missing years [default = year_select[1]:year_select[length(year_select)], which is the years from the first year to last year in year_select

season_name

character. Name of season, used in the names of the output folder [default is “season"]

hy_alt

character string or vector. Name(s) of hysplit heights to be run

alt.adj

numeric. Adjustment if more than one location [default is 0]

sPix

numeric. Size of pixel, in degrees [default is 0.3]

nPix

numeric. Number of pixels in horizontal and vertical direction [default is 100]

borderName

character. Name of shapefile located in the "shapefiles" folder of project home directory to plot country/sub-country borders [default is "ne_10m_admin_0_countries"]

x.adj

logical. Adjust x axis latitude to 0-360? default is FALSE (-180 to 180)

zoom

numeric. Window of the plot, in degrees, from the lon, lat of the starting location in all 4 directions [default is 4.5]

x.just

numeric. Adjust window laterally, positive is right and negative is left [default is 0]

y.just

numeric. Adjust window vertically, positive is right and negative is left [default is 0]

nKM

numeric. Length of scale bar, in kilometers [default is 150]

traj.col

character string or vector in html or R color name. Colors of trajectories [default is c("#a6cee3","#fb9a99","#cab2d6")]

traj.lwd

numeric. Width of trajectory lines [default is 0.3]

col.adj

numeric vector, length=4. Adjust color bar position/size (format is c(x.min, x.max, y.min, y.max) adjustment) [default is c(0,0,0,0)]

scale.adj

numeric vector, length=2. Adjust scale bar position (format is c(x, y) adjustment), [default is c(0,0)]

bar.adj

numeric vector, length=4. Adjust timestamp bar position/size (format is c(x.min, x.max, y.min, y.max) adjustment), [default is c(0,0,0,0)]

caption

character or expression. Name of caption, [default is NA], which is no caption

caption.adj

numeric vector, length=2. Adjust caption position (format is c(x, y) adjustment) [default is c(0,0)]

nAlt.adj

numeric vector, length=2. Adjust number of trajectories label position (format is c(x, y) adjustment) [default is c(0,0)]

legend.lab

character vector. Labels for back trajectories [default is hy_alt]

legend.adj

numeric vector, length=2. Adjust legend position (format is c(x, y) adjustment), [default is c(0,0)]

txt_size

numeric. Adjust text size of plot labels, based on size of axis tick labels [default is 0.75]

month_select

numeric vector. Months to be run

...

see global arguments: pointDir, ask_home

Examples

1
2
#creates plots for winter delhi airshed for 2007-2013 and composite winter airshed for these years
plot.airshed(loc="delhi",lon=77.2090,lat=28.6139,day_select=274:334,year_select=2007:2013,season_name="win",hy_alt="0.5km",x.just=1.5,y.just=-1.5,caption="Delhi Winter Airshed \n(OCT-NOV)",legend.lab="0.5 km")

tianjialiu/HyAirshed-RPackage documentation built on March 20, 2018, 11:52 p.m.