strip | R Documentation |
Produces a heatmap display of hourly time series data showing hour of day on the y-axis and day-of-year in the x-axis
strip(x, date, fun = mean, range, cond = rep(" ", length(x)),
arrange = c("long", "wide"),
colour = colorRampPalette(rev(brewer.pal(11, "Spectral"))),
n.col.levs = 1000, start, end, ...)
x |
the variable to be plotted. |
date |
the time series variable to be used for plotting. Needs to be YYYY-MM-DD HH:MM format |
fun |
the function to be used in case the time series is higher resolution than hourly. |
range |
the range of x to be plotted. Values outside this range will not be plotted. |
cond |
the conditioning variable to be used for creating the various strips. Usually the year. If not supplied, year will be used by default. |
arrange |
'long' (the default) will render all strips in one column. 'wide' will render things depending on device size. |
colour |
the colour palette to be used for the heatmap. |
n.col.levs |
the number of colour levels to interpolate to. Increase this if the colour palette does not span all data values. |
start |
the start date of the time series to plot. Only relevant for short time periods (i.e. sub-year). |
end |
the end of the time series to plot. Corresponding to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.