plot.airshedM: Create Plots for HYSPLIT-derived Monthly Airshed

Description Usage Arguments Examples

View source: R/plot.airshedM.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
plot.airshedM(loc, lon, lat, month_select, year_select,
   tYears=year_select[1]:year_select[length(year_select)],
   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),
   bar2.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

month_select

numeric vector. Months to be run

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

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 150000]

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]

...

see global arguments: pointDir, ask_home

Examples

1
2
#creates plots for monthly delhi airshed for Oct-Nov, 2007-2013
plot.airshedM(loc="delhi",lon=77.2090,lat=28.6139,month_select=10:11,year_select=2007:2013,hy_alt="0.5 km",x.just=1.5,y.just=-1.5,caption="Delhi Monthly Airshed")

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