pd_image | R Documentation |
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()
.
pd_image(pd, col = "heat")
prism_image(prismfile, col = "heat")
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". |
Invisibly returns gg
object of the image.
prism_archive_ls()
, prism_archive_subset()
,
ggplot2::geom_raster()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.