Description Usage Arguments Details Value See Also Examples
Plot NOAA climate data.
1 |
... |
Input noaa object or objects. |
breaks |
Regularly spaced date breaks for x-axis. See examples for usage.
See |
dateformat |
Date format using standard POSIX specification for labels on
x-axis. See |
This function accepts directly output from the ncdc
function,
not other functions.
This is a simple wrapper function around some ggplot2 code. There is indeed a lot you can modify in your plots, so this function just does some basic stuff. Look at the internals for what the function does.
ggplot2 plot
Other ncdc: ncdc_combine
,
ncdc_datacats
, ncdc_datasets
,
ncdc_datatypes
,
ncdc_locs_cats
, ncdc_locs
,
ncdc_stations
, ncdc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# Search for data first, then plot
out <- ncdc(datasetid='GHCND', stationid='GHCND:USW00014895', datatypeid='PRCP',
startdate = '2010-05-01', enddate = '2010-10-31', limit=500)
ncdc_plot(out)
ncdc_plot(out, breaks="14 days")
ncdc_plot(out, breaks="1 month", dateformat="%d/%m")
ncdc_plot(out, breaks="1 month", dateformat="%d/%m")
# Combine many calls to ncdc function
out1 <- ncdc(datasetid='GHCND', stationid='GHCND:USW00014895', datatypeid='PRCP',
startdate = '2010-03-01', enddate = '2010-05-31', limit=500)
out2 <- ncdc(datasetid='GHCND', stationid='GHCND:USW00014895', datatypeid='PRCP',
startdate = '2010-09-01', enddate = '2010-10-31', limit=500)
df <- ncdc_combine(out1, out2)
ncdc_plot(df)
## or pass in each element separately
ncdc_plot(out1, out2, breaks="45 days")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.