View source: R/utils_line_guide.R
utils_line_guide | R Documentation |
Guide for Time Series Plots
utils_line_guide(
x = NULL,
position = "topright",
line_color = NULL,
line_width = 1,
length = 1,
text_cex = 0.7,
guide_columns = 1,
subpanel = FALSE
)
x |
(required, sequence) a zoo time series or a time series list. Default: NULL |
position |
(optional, vector of xy coordinates or character string). This is a condensed version of the |
line_color |
(optional, character vector) vector of colors for the time series columns. If NULL, uses the palette "Zissou 1" provided by the function |
line_width |
(optional, numeric vector) Widths of the time series lines. Default: 1 |
length |
(optional, numeric) maps to the argument |
text_cex |
(optional, numeric) Multiplier of the text size. Default: 0.7 |
guide_columns |
(optional, integer) Number of columns in which to set the legend items. Default: 1. |
subpanel |
(optional, logical) internal argument used when generating the multipanel plot produced by |
plot
Other internal_plotting:
color_continuous()
,
color_discrete()
,
utils_color_breaks()
,
utils_line_color()
,
utils_matrix_guide()
,
utils_matrix_plot()
x <- zoo_simulate()
if(interactive()){
zoo_plot(x, guide = FALSE)
utils_line_guide(
x = x,
position = "right"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.