Learn R Programming

eixport (version 0.6.2)

wrf_plot: Simple plot from wrf emission file

Description

Create a quick plot from wrf emission file

Usage

wrf_plot(
  file = file.choose(),
  name = NA,
  time = 1,
  nivel = 1,
  barra = T,
  lbarra = 0.2,
  col = cptcity::cpt(n = 20, rev = T),
  map = NULL,
  skip = FALSE,
  no_title = FALSE,
  verbose = TRUE,
  ...
)

Arguments

file

emission file name

name

pollutant name

time

time from emission file

nivel

level from the emission file

barra

barblot if TRUE

lbarra

length of barplot

col

color vector

map

function call to plot map lines, points and annotation (experimental)

skip

logical, skip plot of constant valuess

no_title

no title plot

verbose

if TRUE print some information

...

Arguments to be passed to plot methods

Author

Daniel Schuch

See Also

Lights, to_wrf and wrf_create

Examples

Run this code
{

dir.create(file.path(tempdir(), "EMISS"))
wrf_create(wrfinput_dir = system.file("extdata", package = "eixport"),
          wrfchemi_dir = file.path(tempdir(), "EMISS"))

# get the name of created file
files <- list.files(path = file.path(tempdir(), "EMISS"),
                   pattern = "wrfchemi",
                   full.names = TRUE)

# load end write some data in this emission file
data(Lights)
to_wrf(Lights, files[1], total = 1521983, name = "E_CO")

wrf_plot(files[1], "E_CO")
}

Run the code above in your browser using DataLab