pd_image {prism} | R Documentation |
Quick spatial image of prism data
Description
pd_image()
makes a spatial image plot of the specified prism
data (single variable and time step.). It is meant for rapid visualization,
but more detailed plots will require other methods.
prism_image()
is the deprecated version of pd_image()
.
Usage
pd_image(pd, col = "heat")
prism_image(prismfile, col = "heat")
Arguments
pd , prismfile |
the name of a single file to be plotted, this is most
easily found through |
col |
the color pattern to use. The default is heat, the other valid option is "redblue". |
Value
Invisibly returns gg
object of the image.
See Also
prism_archive_ls()
, prism_archive_subset()
,
ggplot2::geom_raster()
Examples
## Not run:
get_prism_dailys(
type = "tmean",
minDate = "2013-06-01",
maxDate = "2013-06-14",
keepZip = FALSE
)
# get June 5th
pd <- prism_archive_subset("tmean", "daily", dates = "2013-06-05")
# and plot it
pd_image(pd)
## End(Not run)
[Package prism version 0.2.1 Index]