f_plot_sp: Plot spatial data with overlap shpfile

Description Usage Arguments Examples

Description

Plot spatial data with overlap shpfile

Usage

1
2
3
f_plot_sp(da, filename, colstyle = "RdYlGn", pretty = T,
  margin = list(), shpname = NA, varnames = NA, cuts = NA,
  ranges = NA, width = 7, height = 7, plot = T)

Arguments

da

The input nc file.

filename

The input polygon.

colstyle

"RdYlGn",

pretty

Logic

margin

list or logic. This is the Statistic information for the data showed on the margin

shpname

It can be any sting if a shp will be ploted

varnames

This is the var names for the plot variable

cuts

This is how many segments of the plot

ranges

This is the min and max of the data

width

This is the width of the pdf in "inch"

height

This is the height of the pdf in "inch"

Examples

1
2
3
4
5
6
7
8
9
# the shpfile has to be loaded before the plot
library(maptools)
shp<-readShapeLines("data/shp/AU_STATES.shp")
f_plot_sp(da = WTD,
       filename = "/Dataset/www/images/WUE_AU/tt1.pdf",
       width=7,height=7,
       cuts = 10,
       ranges = c(3,100),
       shpname = "shp")

ln1267/dWaSSI documentation built on Dec. 3, 2019, 4:39 a.m.