Description Usage Arguments Examples
time_series_data
1 2 3 4 |
w.use |
is a subset of the datafile wUseSample that includes all areas in all data elements for state |
data.elements |
character name of data element within available categories by year for state |
area.column |
character that defines which column to use to specify area |
plot.points |
is a logical function to show counties as points or clustered bar graph |
years |
vector of integers specifying all years available for state. Defaults to NA which shows all years in dataset. |
areas |
is a geographical area as defined in your datafile such as county, HUC, or aquifer |
y.scale |
allows R to set the y-axis scale given available data range. Defaults to NA which lets R set the scale based on dataset values. |
log |
= TRUE or FALSE allows user to set log scale, default is FALSE |
legend |
is a logical function to include list of counties in a legend if manageable, default is TRUE |
c.palette |
color palette to use for points or bars |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | df <- wUseSample
areas <- c("Kent County","Sussex County")
area.column = "COUNTYNAME"
data.elements <- c("PS.GWPop","TP.TotPop")
w.use <- subset_wuse(df, data.elements,area.column,areas)
year1 <- 2005
year2 <- 2010
years <- c(year1, year2)
time_series_data(w.use, data.elements, area.column = area.column,areas = areas)
time_series_data(w.use, data.elements, plot.points = FALSE,
area.column = area.column,areas = areas)
time_series_data(w.use, data.elements, plot.points = FALSE,
area.column = area.column,areas = areas, legend=FALSE)
time_series_data(w.use, data.elements, area.column)
time_series_data(w.use, data.elements, area.column, y.scale = c(0,1000))
time_series_data(w.use, data.elements, area.column,
y.scale = c(0,100),years = c(1990,2005))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.