View source: R/space_time_plot.R
Given a raster brick (and possibly uncertainties/errors), plot a map of the average across time, and a graph of the average across space.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | space_time_plot(
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,
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 |
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.