Description Usage Arguments Value Examples
A quick plotting routine to visualize TOA5 content. It requires reshape2, ggplot2, and gridExtra packages.
1 2 3 |
x |
a |
y |
ignored |
... |
ignored |
range |
timestamp range to plot, defaults to everything available (1970-2037 years, see DateTimeClasses) |
ncol |
number of columns to arrange plots into |
meta |
whether to include metadata from TOA5 header on a plot |
An object with S3 classes gtable
,
gTree
, grob
, and gDesc
.
You can actually plot it with grid.draw
. Provided p is
the result, you can use max(p$grobs[[2]]$layout$t)
to assess the
number of panes vertically if meta is TRUE
and
max(p$layout$t)
otherwise when deciding on the size of the
device/image to plot on so panes aren't crammed.
1 2 3 4 5 6 7 | Sys.setenv(TZ='GMT')
fpath <- system.file("extdata", "Station_Daily.dat", package="csdf")
obj <- read.toa5(fpath)
# call plot on csdf
p <- plot(obj, range=c("2014-05-01", "2014-06-01"))
# call grid.draw on gTree
grid::grid.draw(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.