View source: R/plot_functions.R
fill_horiz | R Documentation |
Plotting a xy domain with custom boundaries, colour paletts and optional world map
fill_horiz( x, y, fld, levels = 1:100, main = "", worldmap = TRUE, legend_loc = "topright", legend_title = "", legend_only = FALSE, Lab = NULL, ... )
x |
array containing x-axis values (e.g. longitude) |
y |
array containing y-axis values (e.g. latitude) |
fld |
field (which should be plotted) with dimensions (x,y) |
levels |
levels for colour bar |
main |
character containing main title of the plot |
worldmap |
should the world map contours be plotted (default TRUE) |
legend_loc |
location of legend |
legend_title |
character containing legend title |
legend_only |
logical TRUE only legend should be pltted, or FALSE everything should be plotted (default) |
Lab |
lab palette from type colorRampPalette |
... |
additional graphic parameters |
no return
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.