View source: R/plotTimeCourse.2.R
Make sure x, y, st.err.mean, col are of the same length with 1-2-1 relationship.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | plotTimeCourse.2(
time,
y,
st.err.mean,
length = 0.1,
col = "red",
main = "",
xlab = "",
ylab = "",
type = "l",
lty = 1,
lwd = 2,
addLegend = T,
legendPosition = "topright",
label_Xaxis = T
)
|
time |
Date-type vector. X-axis will be labelled date-wise if label_Xaxis is TRUE. Should not have NAs. |
y |
Numeric vector of values to be plotted on the Y-axis OR a list of these vectors for multi-line plots. May have NAs. Please ensure time vector is relevant for all y vectors if list supplied. |
st.err.mean |
Numeric vector of standard error of the mean (or other measure of variability) OR a list of these vectors. Defults to 'rep(0,length(y))'. |
length |
Numeric of lengths of the edges of the arrow head (in inches). Defults to 0.1. |
col |
Chracter of the color of line connecting the data points across the time course. If list supplied ensure there is Color assigned to each case. Defults to "red". |
main |
Character of the graph title. Defults to "". |
xlab |
Character of X axis label. Defults to "". |
ylab |
Character of Y axis label. Defults to "". |
type |
Character of type of plot should be drawn. See ?plot for types. |
lty |
Numeric of line type. |
lwd |
Numeric of line width. |
addLegend |
A boolean indicating whether to plot legend. Defults to TRUE. |
legendPosition |
Character of logend position. One of "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right" and "center". Defults to "topright". |
label_Xaxis |
Boolean. Should X-axis be labeled with time-type data?. Defults to TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.