| plotconc {heR.Simulation} | R Documentation |
Plot a data frame of concentrations for a set of locations as separate, vertically stacked, filled-area plots with the fill color identifying the location.
plotconc(x, times, labels, cols = "set1", line.cols = NULL,
label.cex = 2.5, label.col = "black", lwd = 2,
axes = TRUE, cex.axis = 1.5, bg = "beige", ...)
x |
a data frame containing location concentrations |
times |
a vector of times corresponding to each set of concentrations in x |
labels |
text labels to use for each set of concentrations, defaulting to dataframe column names |
cols |
colors to use in drawing the filled area under each curve |
line.cols |
colors to use in drawing the line connecting data points, devaults to cols |
label.cex |
magnification level for test labels |
label.col |
the color to use in drawing labels |
lwd |
the width of lines connecting data points |
axes |
logical, whether to draw axes or not |
cex.axis |
magnification level for axis labels |
bg |
the background color to inside panels |
... |
additional argments to the areaplot function |
The plots are characterized by a common domain (time) and range (concentration).
times are assumed common to each series in x.
The labels for each plot are taken from the dataframe column names by default.
The colors can be a vector of colors corresponding to each room
or a color palette name can be specified where the colors
will be drawn sequentially from the palette. The possible
palettes are currently from the RColorBrewer categorical
palettes, and only allow for a maximum of eight different colors.
If there are more than 8 locations, spline.colors is used to
get a number of (hopefully) distinct rainbow colors.
The color pallettes are: "set1", "set2", "set3", "accent", "dark2", "pastel1", and "pastel2"
Invoked for the purpose of creating stacked panels of time series plots.
Neil Klepeis
The general function for creating filled-area plots is
areaplot.
cat.cols is used to automatically select
colors.