plot.ncslice4: Plot a slice extracted from a NetCDF file

Description Usage Arguments See Also Examples

Description

Plot a slice extracted from a NetCDF file

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'ncslice4'
image(x, ...)

## S3 method for class 'ncslice4'
plot(x, ...)

## S3 method for class 'ncslice4'
contour(x, ...)

## S3 method for class 'ncslice4'
persp(x, ...)

Arguments

x

a NetCDF slice object, extracted via ncvar_slice

...

passed to the plotting function

See Also

ncvar_slice

Examples

1
2
3
4
5
6
nc <- nc_open(system.file("extdata", "sresa1b_ncar_ccsm3.nc", package="ncdf4helpers"))
x <- ncvar_slice(nc, "tas", lon=10:30, lat=30:50)
nc_close(nc)
image(x)
contour(x, add=TRUE)
persp(x, theta=210, phi=30)

jiho/ncdf4helpers documentation built on May 19, 2019, 10:31 a.m.