View source: R/space_time_video.R
Given a raster brick (and possibly uncertainties/errors), plot a video of the brick through time, and a graph of the average across space, with a bar indicating year.
1 2 3 4 5 6 | space_time_video(the_brick, the_brick_upper = NULL, the_brick_lower = NULL,
out_file, line = 75, title = NULL, time, timelim, timeaxis,
timelab = "Year AD", zbreaks = NULL, zlab, zaxis,
zcolors = rev(RColorBrewer::brewer.pal(11, "RdYlBu")), fig_width = 6.5,
graph_height = 1.5, margin = 0.1, pt_size = 8, smooth = FALSE,
length = 60, extra_plot_fun = NULL, extra_legend_fun = NULL)
|
the_brick |
The data to plot |
the_brick_upper |
The upper CI data |
the_brick_lower |
The lower CI data |
out_file |
Where to write the output |
title |
The Title of the plot |
time |
The timeseries of the plot |
timelim |
The time limits of the plot |
timeaxis |
The time limits of the axis |
timelab |
The label of the time axis |
zbreaks |
The color breaks for plotting |
zlab |
The label for the data |
zaxis |
The axis breaks for the data |
zcolors |
The colors for the data |
fig_width |
The width of the figure |
graph_height |
The height of the time series graph |
margin |
The margin |
pt_size |
The point size |
smooth |
Should the timeseries be smoothed by kernel estimation |
length |
The length (in seconds) of the video |
extra_plot_fun |
Any extra plotting functions |
extra_legend_fun |
Any extra legend functions |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.